Prev: BD4E Up: Map Next: BD6C
BD54: Store the method, then key 5: directional control
Used by the routine at check_for_interface_ii.
Key 5 flips bit 3 of $5BA4, once per press: bit 0 of $5BD2 remembers that the key is down, and clr_debounce clears it when the key is let go.
check_for_directional_control BD54 LD ($5BA4),A the method chosen by keys 1 to 4
BD57 LD HL,$5BD2
BD5A BIT 4,E key 5 not pressed: clear the latch
BD5C JR Z,clr_debounce
BD5E BIT 0,(HL) still held since last pass: do nothing
BD60 JR NZ,check_for_start_game
BD62 SET 0,(HL) new press: latch it and toggle directional control
BD64 LD A,($5BA4)
BD67 XOR $08
BD69 LD ($5BA4),A
Prev: BD4E Up: Map Next: BD6C