Prev: 768A Up: Map Next: 770D
76F8: Scan in keyboard state
Used by the routines at Vector_Main and UpdateKeyboardInput.
KeyboardScan 76F8 LD HL,KeyStatesLast Scan through all key states and store in memory as bit flags.
76FB LD E,$80
76FD LD BC,$7FFE
KeyboardScan_0 7700 IN D,(C)
7702 LD (HL),D
7703 AND A
7704 RR E
7706 RET Z
7707 DEC HL
7708 LD A,B
7709 ADD A,E
770A LD B,A
770B JR KeyboardScan_0
Prev: 768A Up: Map Next: 770D