Prev: 26988 Up: Map Next: 27044
27022: Toggle the sound on/off if 'T' is pressed
Called from the main loop at 25129.
27022 LD A,251 Read keys Q-W-E-R-T.
27024 IN A,(254)
27026 AND 16 Keep only bit 4 (corresponding to 'T').
27028 LD HL,31850 Pick up the last recorded 'T' pressed indicator.
27031 CP (HL) Does the current value match?
27032 RET Z Return if so.
27033 LD (HL),A Save the current 'T' pressed indicator.
27034 AND A Is 'T' being pressed?
27035 RET NZ Return if not.
27036 LD HL,31849 Toggle the sound on/off indicator by flipping bits 3 and 4.
27039 LD A,(HL)
27040 XOR 24
27042 LD (HL),A
27043 RET
Prev: 26988 Up: Map Next: 27044