Prev: B0D9 Up: Map Next: B103
B0FA: Controls: Keyboard
Used by the routine at HandlerControls.
Reads the keys "Q", "W", "E", "R" and "T" and uses them directly as the controls, so "Q" is left, "W" is right, "E" is up, "R" is down and "T" is fire.
Output
C Keyboard controls
ReadKeyboard B0FA LD A,$FB Read from the keyboard;
Port Number Bit
0 1 2 3 4
FB Q W E R T
B0FC OUT ($FD),A
B0FE IN A,($FE)
B100 CPL Flip the bits.
B101 LD C,A Store the controls in C.
B102 RET Return.
View the equivalent code in;
Prev: B0D9 Up: Map Next: B103