-
Notifications
You must be signed in to change notification settings - Fork 1
/
keyboard_def.asm
50 lines (46 loc) · 2 KB
/
keyboard_def.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;
STATUS_PORT = $AF1064
KBD_OUT_BUF = $AF1060
KBD_INPT_BUF = $AF1060
KBD_CMD_BUF = $AF1064
KBD_DATA_BUF = $AF1060
PORT_A = $AF1060
PORT_B = $AF1061
; Status
OUT_BUF_FULL = $01
INPT_BUF_FULL = $02
SYS_FLAG = $04
CMD_DATA = $08
KEYBD_INH = $10
TRANS_TMOUT = $20
RCV_TMOUT = $40
PARITY_EVEN = $80
INH_KEYBOARD = $10
KBD_ENA = $AE
KBD_DIS = $AD
; Keyboard Commands
KB_MENU = $F1
KB_ENABLE = $F4
KB_MAKEBREAK = $F7
KB_ECHO = $FE
KB_RESET = $FF
KB_LED_CMD = $ED
; Keyboard responses
KB_OK = $AA
KB_ACK = $FA
KB_OVERRUN = $FF
KB_RESEND = $FE
KB_BREAK = $F0
KB_FA = $10
KB_FE = $20
KB_PR_LED = $40
; .align 256
; ; $00, $01, $02, $03, $04, $05, $06, $07, $08, $09, $0A, $0B, $0C, $0D, $0E, $0F
; ScanCode_Press_Set1 .text $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; $00
; .text $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; $10
; .text $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; $20
; .text $00, $00, $00, $00, $00, $00, $00, $00, $00, $08, $00, $00, $00, $00, $00, $00 ; $30
; .text $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $02, $00, $04, $00, $00 ; $40
; .text $06, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; $50
; .text $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; $60
; .text $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; $70