Prev: 40570 Up: Map Next: 40693
40675: Read Pause Keys
Used by the routines at CheckPause and CheckPauseAndSilence.
Tests the SPACE and CAPS SHIFT keys.
Output
F The zero flag is set if either key is pressed
ReadPauseKeys 40675 LD A,127 Select the keyboard row with SPACE.
40677 OUT (253),A Put the row on the address lines.
40679 IN A,(254) Read the keyboard.
40681 AND %00000001 Keep the bit for SPACE.
40683 RET Z Return if SPACE is pressed.
40684 LD A,254 Select the keyboard row with CAPS SHIFT.
40686 OUT (253),A Put the row on the address lines.
40688 IN A,(254) Read the keyboard.
40690 AND %00000001 Keep the bit for CAPS SHIFT.
40692 RET Return.
Prev: 40570 Up: Map Next: 40693