Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
	NOLIST
2
 
3
; tasti base
4
KB_TAB			EQU		0x09		; TAB
5
KB_CR			EQU		0x0D		; ENTER
6
KB_ESCAPE		EQU		0x1B		; ESCAPE
7
 
8
; codici di controllo
9
 
10
; tasti speciali
11
KB_SHIFTPRT			EQU		0x01
12
KB_ALTPRT			EQU		0x02
13
KB_CTLPRT			EQU		0x03
14
KB_ALTCTLPRT		EQU		0x04
15
KB_SHIFTHOME		EQU		0x05
16
KB_ALTHOME			EQU		0x06
17
KB_CTLHOME			EQU		0x07
18
KB_ALTCTLHOME		EQU		0x08
19
KB_SHIFTINS			EQU		0x09
20
KB_ALTINS			EQU		0x0A
21
KB_CTLINS			EQU		0x0B
22
KB_ALTCTLINS		EQU		0x0C
23
KB_SHIFTPGUP		EQU		0x0D
24
KB_ALTPGUP			EQU		0x0E
25
KB_CTLPGUP			EQU		0x0F
26
KB_ALTCTLPGUP		EQU		0x10
27
KB_SHIFTPGDWN		EQU		0x11
28
KB_ALTPGDWN			EQU		0x12
29
KB_CTLPGDWN			EQU		0x13
30
KB_ALTCTLPGDWN		EQU		0x14
31
KB_SHIFTEND			EQU		0x15
32
KB_ALTEND			EQU		0x16
33
KB_CTLEND			EQU		0x17
34
KB_SHIFTDEL			EQU		0x18
35
KB_ALTDEL			EQU		0x19
36
KB_CTLDEL			EQU		0x1A
37
KB_SHIFTBKS			EQU		0x1B
38
KB_ALTBKS			EQU		0x1C
39
KB_CTLBKS			EQU		0x1D
40
 
41
KB_ALTESC			EQU		0x1E
42
KB_CTLESC			EQU		0x1F
43
KB_ALTTAB			EQU		0x20
44
KB_CTLTAB			EQU		0x21
45
KB_ALTCTLTAB		EQU		0x22
46
KB_ALTPLUS			EQU		0x23
47
KB_CTLPLUS			EQU		0x24
48
KB_ALTCTLPLUS		EQU		0x25
49
KB_ALTMINUS			EQU		0x26
50
KB_CTLMINUS			EQU		0x27
51
KB_ALTCTLMINUS		EQU		0x28
52
 
53
; tasti NMI
54
KB_ALTCTLEND		EQU		0x80		; NMI
55
KB_ALTCTLDEL		EQU		0x81		; NMI
56
KB_ALTCTLBKS		EQU		0x82		; NMI
57
KB_CTRLBREAK		EQU		0x83		; CTRL + BREAK (NMI)
58
KB_ALTSYSREQ		EQU		0x84		; ALT + SYS REQ (NMI)
59
KB_WAKE				EQU		0x85		; WAKE UP (se presente) (NMI)
60
KB_SLEEP			EQU		0x86		; SLEEP (se presente) (NMI)
61
KB_PWR				EQU		0x87		; POWER (se presente) (NMI)
62
KB_ALTCTLESC		EQU		0x88
63
 
64
 
65
; ALT 0..9        -> 30..39
66
; CTRL 0..9       -> 40..49
67
; CTRL + ALT 0..9 -> 50..59
68
 
69
; 60 - 7F -> ALT @ ....
70
 
71
; tasti speciali e tasti cursore
72
KB_RIGHTGUI		EQU		0x80		; RIGHT GUI
73
KB_LEFTGUI		EQU		0x81		; LEFT GUI
74
KB_GUIMENU		EQU		0x82		; MENU GUI
75
KB_PRTSCN		EQU		0x83		; PRINT SCRN
76
KB_CSRUP		EQU		0x84		; CURSOR UP
77
KB_HOME			EQU		0x85		; CURSOR HOME
78
KB_INSERT		EQU		0x86		; INSERT
79
KB_CSRRIGHT		EQU		0x87		; CURSOR RIGHT
80
KB_PGUP			EQU		0x88		; PAGE UP
81
KB_SHTAB		EQU		0x89		; SHIFT + TAB
82
KB_PGDOWN		EQU		0x8A		; PAGE DOWN
83
KB_CSRDOWN		EQU		0x8B		; CURSOR DOWN
84
KB_END			EQU		0x8C		; END
85
KB_SHCR			EQU		0x8D		; SHIFT + ENTER
86
KB_DELETE		EQU		0x8E		; DELETE
87
KB_CSRLEFT		EQU		0x8F		; CURSOR LEFT
88
KB_BACKSPACE	EQU		0x90		; BACKSPACE
89
 
90
; tasti funzione fino a FF
91
	;						FX -> A0..AB
92
	; SHIFT +				FX -> AC..B7
93
	; CTL	+				FX -> B8..C3
94
	; ALT	+				FX -> C4..CF
95
	; CTL + SHIFT +			FX -> D0..DB
96
	; CTL + ALT	 +			FX -> DC..E7
97
	; ALT + SHIFT +			FX -> E8..F3
98
	; CTL + ALT + SHIFT	+	FX -> F4..FF
99
KB_F1			EQU		0xA0
100
KB_F2			EQU		0xA1
101
KB_F3			EQU		0xA2
102
KB_F4			EQU		0xA3
103
KB_F5			EQU		0xA4
104
KB_F6			EQU		0xA5
105
KB_F7			EQU		0xA6
106
KB_F8			EQU		0xA7
107
KB_F9			EQU		0xA8
108
KB_F10			EQU		0xA9
109
KB_F11			EQU		0xAA
110
KB_F12			EQU		0xAB
111
 
112
 
113
;KB_ALTESC	.EQU	$F9
114
;KB_CTRLESC	.EQU	$FA
115
;KB_ALTTAB	.EQU	$FB
116
;KB_CTRLTAB	.EQU	$FC
117
;KB_ALTPLUS	.EQU	$FD
118
;KB_CTRLPLUS	.EQU	$FE
119
;KB_CTRLALTBS	.EQU	$FF
120
 
121
; codice tasti limite come ritornati dalla tabella CVTTBL
122
CAPSCODE		EQU		0x06		; codice tasto CAPS-LOCK
123
PAUSECODE		EQU		0x09		; codice tasto PAUSE
124
CRCODE			EQU		0x0A		; codice tasto ENTER
125
KPBARCODE		EQU		0x10		; codice '/' tastierino numerico
126
CBRKCODE		EQU		0x16		; codice CTRL+BREAK
127
SYSCODE			EQU		0x17		; codice ALT + SYS REQ
128
WAKECODE		EQU		0x18
129
PRTCODE			EQU		0x1E		; codice tasto PRINT SCRN
130
ESCCODE			EQU		0x1F		; codice tasto ESCAPE
131
KP0CODE			EQU		0x20		; codice '0' tastierino numerico
132
INSCODE			EQU		0x2B		; codice tasto INSERT
133
FNCCODE			EQU		0x36		; codice tasto F1
134
MAPCODE			EQU		0x42		; codice tasti mappa US/IT
135
MAPCODEMAX		EQU		0x56		; codice max. mappe US/IT
136
NVCODE			EQU		0x60		; limite codice non valido
137
 
138
; lunghezza tabella tasti cursore
139
CRSLEN			EQU		(FNCCODE - INSCODE)
140
 
141
ALTKEY0			EQU		0x30
142
CTLKEY0			EQU		0x40
143
ALTCTLKEY0		EQU		0x50
144
 
145
	LIST