Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
;----------------------------------------------------------
2
; KBD.INC
3
; PROGETTO: B1601
4
;
5
; controller tastiera
6
;----------------------------------------------------------
7
 
8
; il file puo' essere incluso solo all'interno di GLOBAL.INC
9
.IFNDEF		_GLOBAL_INC_
10
.EXIT		"ERROR: This file cannot be included."
11
.ENDIF
12
 
13
.IFDEF	_KBD_INC_
14
 
15
; bit di KbdFlag
16
LSHIFTB		.EQU	00000001B
17
LCTRLB		.EQU	00000010B
18
LALTB		.EQU	00000100B
19
RSHIFTB		.EQU	00001000B
20
RCTRLB		.EQU	00010000B
21
RALTB		.EQU	00100000B
22
ACTRLB		.EQU	01000000B	; L-CTRL OR R-CTRL
23
AALTB		.EQU	10000000B	; L-ALT OR R-ALT
24
 
25
; bit di KbdShift
26
ASHIFTB		.EQU	10000000B	; L-SHIFT OR R-SHIFT
27
ALTCTLB		.EQU	01000000B	; L-CTRL OR R-CTRL OR L-ALT OR R-ALT
28
 
29
; bit di KbdToggle
30
CAPSLOCKB	.EQU	10000000B	; CAPS-LOCK toggle bit
31
NUMLOCKB	.EQU	01000000B	; NUM-LOCK toggle bit
32
SCROLLLOCKB	.EQU	00100000B	; SCROLL-LOCK toggle bit
33
PAUSETGB	.EQU	00010000B	; tasto PAUSE toggle bit
34
INSERTTGB	.EQU	00000100B	; bit press/release INSERT
35
ESCAPETGB	.EQU	00000010B	; bit press/release ESC
36
PRNSCTGB	.EQU	00000001B	; bit press/release PRINT SCRN
37
 
38
; these are not control keys
39
KB_CTLC		.EQU	$03
40
KB_BELL		.EQU	$07
41
KB_TAB		.EQU	$09
42
KB_LF		.EQU	$0A
43
KB_CR		.EQU	$0D
44
KB_CTLS		.EQU	$13
45
KB_CTLV		.EQU	$16
46
KB_CTLX		.EQU	$18
47
KB_CTLY		.EQU	$19
48
KB_ESC		.EQU	$1B
49
 
50
; combinazioni tasti speciali
51
KB_SHIFTPRT	.EQU	$01	; SHIFT + PRINT SCRN
52
KB_ALTPRT	.EQU	$02
53
KB_CTLPRT	.EQU	$03
54
KB_ALTCTLPRT	.EQU	$04
55
KB_SHIFTHOME	.EQU	$05
56
KB_ALTHOME	.EQU	$06
57
KB_CTLHOME	.EQU	$07
58
KB_ALTCTLHOME	.EQU	$08
59
KB_SHIFTINS	.EQU	$09
60
KB_ALTINS	.EQU	$0A
61
KB_CTLINS	.EQU	$0B
62
KB_ALTCTLINS	.EQU	$0C
63
KB_SHIFTPGUP	.EQU	$0D
64
KB_ALTPGUP	.EQU	$0E
65
KB_CTLPGUP	.EQU	$0F
66
KB_ALTCTLPGUP	.EQU	$10
67
KB_SHIFTPGDWN	.EQU	$11
68
KB_ALTPGDWN	.EQU	$12
69
KB_CTLPGDWN	.EQU	$13
70
KB_ALTCTLPGDWN	.EQU	$14
71
KB_SHIFTEND	.EQU	$15
72
KB_ALTEND	.EQU	$16
73
KB_CTLEND	.EQU	$17
74
KB_SHIFTDEL	.EQU	$18
75
KB_ALTDEL	.EQU	$19
76
KB_CTLDEL	.EQU	$1A
77
KB_SHIFTBKS	.EQU	$1B
78
KB_ALTBKS	.EQU	$1C
79
KB_CTLBKS	.EQU	$1D
80
KB_ALTESC	.EQU	$1E
81
KB_CTLESC	.EQU	$1F
82
KB_ALTTAB	.EQU	$20
83
KB_CTLTAB	.EQU	$21
84
KB_ALTCTLTAB	.EQU	$22
85
KB_ALTPLUS	.EQU	$23
86
KB_CTLPLUS	.EQU	$24
87
KB_ALTCTLPLUS	.EQU	$25
88
KB_ALTMINUS	.EQU	$26
89
KB_CTLMINUS	.EQU	$27
90
KB_ALTCTLMINUS	.EQU	$28
91
 
92
; tasti speciali e tasti cursore
93
KB_RIGHTGUI	.EQU	$80	; RIGHT GUI
94
KB_LEFTGUI	.EQU	$81	; LEFT GUI
95
KB_GUIMENU	.EQU	$82	; MENU GUI
96
KB_PRTSCN	.EQU	$83	; PRINT SCRN
97
KB_CSRUP	.EQU	$84	; CURSOR UP
98
KB_HOME		.EQU	$85	; CURSOR HOME
99
KB_INSERT	.EQU	$86	; INSERT
100
KB_CSRRIGHT	.EQU	$87	; CURSOR RIGHT
101
KB_PGUP		.EQU	$88	; PAGE UP
102
KB_SHTAB	.EQU	$89	; SHIFT + TAB
103
KB_PGDOWN	.EQU	$8A	; PAGE DOWN
104
KB_CSRDOWN	.EQU	$8B	; CURSOR DOWN
105
KB_END		.EQU	$8C	; END
106
KB_SHCR		.EQU	$8D	; SHIFT + ENTER
107
KB_DELETE	.EQU	$8E	; DELETE
108
KB_CSRLEFT	.EQU	$8F	; CURSOR LEFT
109
KB_BACKSPACE	.EQU	$90	; BACKSPACE
110
 
111
; tasti NMI
112
KB_ALTCTLEND	.EQU	$80	; NMI
113
KB_ALTCTLDEL	.EQU	$81	; NMI
114
KB_ALTCTLBKS	.EQU	$82	; NMI
115
KB_CTRLBREAK	.EQU	$83	; CTRL + BREAK (NMI)
116
KB_ALTSYSREQ	.EQU	$84	; ALT + SYS REQ (NMI)
117
KB_WAKE		.EQU	$85	; WAKE UP (se presente) (NMI)
118
KB_SLEEP	.EQU	$86	; SLEEP (se presente) (NMI)
119
KB_PWR		.EQU	$87	; POWER (se presente) (NMI)
120
KB_ALTCTLESC	.EQU	$88
121
 
122
KB_F8		.EQU	$A7	; F8
123
KB_F12		.EQU	$AB	; F12
124
 
125
KB_ALTF1	.EQU	$C4
126
KB_ALTF10	.EQU	$CD
127
KB_ALTF11	.EQU	$CE
128
KB_ALTF12	.EQU	$CF
129
 
130
 
131
; ALT 0..9        -> 30..39
132
; CTRL 0..9       -> 40..49
133
; CTRL + ALT 0..9 -> 50..59
134
 
135
; 60 - 7F -> ALT @ ....
136
 
137
; tasti funzione fino a FF
138
	;				FX -> A0..AB
139
	; SHIFT +			FX -> AC..B7
140
	; CTL	+			FX -> B8..C3
141
	; ALT	+			FX -> C4..CF
142
	; CTL + SHIFT +			FX -> D0..DB
143
	; CTL + ALT	 +		FX -> DC..E7
144
	; ALT + SHIFT +			FX -> E8..F3
145
	; CTL + ALT + SHIFT	+	FX -> F4..FF
146
 
147
.ENDIF