Nintendo 1504166 Programming Manual - Page 155
Key Input, 14.1 Key Status, 14.2 Key Interrupt Control
View all Nintendo 1504166 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 155 highlights
AGB Programming Manual Key Input 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. Address 130h Register KEY INPUT 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Attributes Initial Value L R DWN UP LFT RT ST SL B A R/W 0000h Key Status 0: Input 1: No Input 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. Address Register 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Attributes Initial Value 132h KEYCNT L R DWN UP LFT RT ST SL B A R/W 0000h Interrupt Request Enable Flag 0: Disable 1: Enable Interrupt Condition Specification Flag 0: Logical Addition (OR) 1: Logical Multiplication (AND) Interrupt Specification Flag 0: Not Specified 1: Specified ©1999 - 2001 Nintendo of America Inc. 155 D.C.N. AGB-06-0001-002B4