Prev: D3CB Up: Map Next: D3EA
D3E2: Reads In-Game Controls (Left + Right)
Used by the routine at Controls_Keyboard.
Controls_Input_O_P D3E2 LD A,$DF Read from the keyboard;
Port Number Bit
0 1 2 3 4
$DF P O I U Y
D3E4 IN A,($FE)
D3E6 CPL Invert all the bits of A.
D3E7 AND $03 Keep only bits 0 and 1 (i.e. we only care about "P" and "O" for left and right).
D3E9 RET Return.
Prev: D3CB Up: Map Next: D3EA