Prev: 45273 Up: Map Next: 45315
45306: 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 45306 LD A,251 Read from the keyboard;
Port Number Bit
0 1 2 3 4
251 Q W E R T
45308 OUT (253),A
45310 IN A,(254)
45312 CPL Flip the bits.
45313 LD C,A Store the controls in C.
45314 RET Return.
View the equivalent code in;
Prev: 45273 Up: Map Next: 45315