AGB Programming Manual
Key Input
©1999 - 2001 Nintendo of America Inc.
155
D.C.N. AGB-06-0001-002B4
14 Key Input
14.1 Key Status
AGB allows input with the L and R buttons, as well as with START and SELECT,
Control Pad, and A and B Buttons.
The status of each of these buttons can be checked by reading the individual bits of
Register KEYINPUT.
Key Status
0: Input
1: No Input
15 14
13
12 11
10
09 08
07
06 05
04 03
02
01 00
KEY
INPUT
130h
0000h
R/W
A
B
L
R
SL
ST
Address
Register
Attributes
Initial Value
UP
DWN
LFT
RT
14.2 Key Interrupt Control
When an interrupt is performed for key input, this register enables a target key
combination or condition for the interrupt to be specified.
Interrupt Specification Flag
0: Not Specified
1: Specified
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
KEYCNT
132h
0000h
R/W
A
B
L
R
SL
ST
Interrupt Condition Specification Flag
0: Logical Addition (OR)
1: Logical Multiplication (AND)
Interrupt Request Enable Flag
0: Disable
1: Enable
Address
Register
Attributes
Initial
Value
UP
DWN
LFT
RT