Prev: B310 Up: Map Next: B399
B374: Scans for menu keys. (1,2,3, Enter)
Used by the routines at Game_InputSetKeys and MainMenu.
Input
Output
Game_MenuKeyScan B374 LD C,$7F
B376 LD B,$08
B378 LD A,C
Game_MenuKeyScan_0 B379 IN A,($FE)
B37B AND $1F
B37D CP $1F
B37F JR NZ,Game_MenuKeyScan
B381 LD A,C
B382 RRCA
B383 LD C,A
B384 DJNZ Game_MenuKeyScan_0
Game_MenuKeyScan_1 B386 LD C,$7F
B388 LD B,$08
B38A LD A,C
Game_MenuKeyScan_2 B38B IN A,($FE)
B38D AND $1F
B38F CP $1F
B391 RET NZ
B392 LD A,C
This address is also used as a starting point for Game_InputAsciiTable, see Game_InputAsAscii
Game_InputAsciiTablePtr B393 RRCA
B394 LD C,A
B395 DJNZ Game_MenuKeyScan_2
B397 JR Game_MenuKeyScan_1
Prev: B310 Up: Map Next: B399