I ST 10 CHARACTER FOR KBX
2ND 10 CHARACTER FOR KBX
SCAN CODE FOR
AL TERNATE SH I FT KEY
SCAN CODE FOR
CONTROL KEY
SCAN CODE FOR
SH I FT LOCK KEY
SCAN CODE FOR
DELETE KEY
SCAN CODE FOR
I NSERT KEY
SCAN CODE FOR
LEFT SH I FT
SCAN CODE FOR
NUMBER LOCK KEY
SCAN CODE FOR
RIGHT SH I FT
SCAN CODE FOR
SCROLL LOCK KEY
SCAN CODE FOR
SYSTEM KEY
Fll KEY MAKE
FI2 KEY MAKE
1-3
01-10-86
; ---------- KEYBOARD SCAN CODES
10 1
EQU
OABH
10-2
EQU
041H
ALT KEY
EQU
56
CTL-KEY
EQU
29
CAPS KEY
EQU
58
DEL KEY
EQU
83
INS-KEY
EQU
82
LEFT KEY
EQU
42
NUM KEY
EQU
69
RIGHT KEY
EQU
54
SCROLL KEY
EQU
70
SYS KEY
EQU
84
FII-M
EQU
87
FI2=M
EQU
88
; ---------- FLAG EQUATES WITH I N
OKB_FLAG --------------------------------------
RIGHT SH I FT
EQU
0000000 I B
; RIGHT SH I FT KEY DEPRESSED
LEFT SH I FT
EQU
0000001 OB
LEFT SH I FT KEY DEPRESSED
CTL SHIFT
EQU
OOOOOIOOB
• CONTROL SHIFT KEY DEPRESSED
AL T-SH I FT
EQU
00001 OOOB
:
ALTERNATE SH I FT KEY DEPRESSED
SCROLL STATE
EQU
0001 OOOOB
;
SCROLL LOCK STATE HAS BEEN TOGGLED
NUM STATE
EQU
001 OOOOOB
; NUM LOCK STATE HAS BEEN TOGGLED
CAPS STATE
EQU
0 I OOOOOOB
; CAPS LOCK STATE HAS BEEN TOGGLED
INS_STATE
EQU
10000000B
;
INSERT STATE IS ACTIVE
; ---------- FLAG EQUATES WITH I N
OKB_FLAG_l
------------------------------------
SYS SH I FT
EQU
000001 OOB
:
SYSTEM KEY DEPRESSED AND HELD
HOLD STATE
EQU
00001 OOOB
;
SUSPEND KEY HAS BEEN TOGGLED
SCROLL SH I FT
EQU
000 I OOOOB
;
SCROLL LOCK KEY I S DEPRESSED
NUM SHIFT
EQU
001 OOOOOB
: NUM LOCK KEY I S DEPRESSED
CAPS SHIFT
EQU
OIOOOOOOB
; CAPS LOCK KEY IS DEPRESSED
I NS_SH I FT
EQU
10000000B
:
I NSERT KEY
I S DEPRESSED
: ---------- FLAGS EQUATES WITH I N
OKB_FLAG_2 -----------------------------------
KB LEOS
EQU
000001 I I B
; KEYBOARD LED STATE BITS
KB- FA
~~~
ggg~6ggg~
:
~~~~~~~~D6~~~i ~~c~~~~b
KB-FE
EQU
00 I OOOOOB
; RESEND RECE I VED FLAG
KB-PR LED
EQU
01000000B
; MODE INDICATOR UPDATE
KB=ERR
EQU
10000000B
; KEYBOARD TRANSM I T ERROR FLAG
; ---------- FLAGS EQUATES WITH I N
OKB_FLAG_3 -----------------------------------
LC E 1
EQU
00000001 B
; LAST CODE WAS THE E 1 HIDDEN CODE
LC-EO
EQU
000000 I OB
; LAST CODE WAS THE EO HIDDEN CODE
R CTL SH I FT
EQU
00000 I OOB
; RIGHT CTL KEY DOWN
GRAPH-ON
EQU
0000 I OOOB
;
ALL GRAPH I CS KEY DOWN (W. T. ONLY)
KBX
-
~~~
ggg:
6ggg~
:
~~iE~~~~A~~~~T
BE ZERO)
SET NUM LK
EQU
001 OOOOOB
; FORCE NUM LOCK
I F READ 10 AND KBX
LC AB
-
EQU
01 OOOOOOB
; LAST CHARACTER WAS FIRST 10 CHARACTER
RD=ID
EQU
10000000B
; DOING A READ 10 (MUST BE BITO)
102
C
103
C
104
=
OOAA
C
105
=
OOFA
C
106
=
OOFE
C
107
=
OOFF
C
108
C
109
C
110
=
0001
C
111
=
0002
C
112
=
0004
C
113
=
0008
C
114
=
00 10
C
115
=
0020
C
116
=
0040
C
117
=
0080
C
118
C
119
C
120
=
0004
C
121
=
0008
C
122
=
00 I 0
C
123
=
0020
C
124
=
0040
C
125
=
0080
C
126
C
127
C
128
=
0007
C
129
C
130
=
0010
C
131
=
0020
C
132
=
0040
C
133
=
0080
C
134
C
135
C
136
=
0001
C
137
=
0002
C
138
=
0004
C
139
=
0008
C
140
C
141
=
00 I 0
C
142
=
0020
C
143
=
0040
C
144
=
0080
C
145
C
146
C
147
OOAB
C
148
0041
C
149
0038
C
150
0010
C
151
003A
C
152
0053
C
153
0052
C
154
002A
C
155
0045
C
156
0036
C
157
0046
C
158
0054
C
159
0057
C
160
0058
C
IBM Personal Computer MACRO Assembler
Version 2.00
HEADER --- 01/08/86
POWER ON SELF TEST
(POST)
POSTEQU. INC - COMMON EQUATES
PAGE
; - - - - - - - - - -
KEYBOARD RESPONSE - - - -- - - - - -- - - - - - - --- - - - - - - - - - - --- -- - -- - - - - - - - - ----
KB OK
EQU
OAAH
; RESPONSE FROM SELF 0 I AGNOS TIC
KB-ACK
EQU
OFAH
; ACKNOWLEDGE FROM TRANSM I SS ION
KB-RESEND
EQU
OFEH
; RESEND REQUEST
KB=OVER_RUN
EQU
OFFH
; OVER RUN SCAN CODE
5-16
HEADER (01/10/86)