PAUSE n makes your ZX/TS display a screen for n/60 seconds or until a key is pressed. If n exceeds 32767, your computer waits until you press a key. If that key was down when the PAUSE began, the computer ignores it–you must press another. In SLOW mode, the screen flashes at the end of the PAUSE.
You can avoid these problems with the following MC routines. If flash bothers you, use the first of these in a 1 REM to control PAUSE without flash, and without ignoring keys already down when it starts.
1 REM 5▒ ACS UNPLOT 6ORNDUPRNDACS ?""UARNDW""/ NEXT
SYNTACTIC SUM: 2510, 8K ROM
33 128 0 203 252 34 52 64 58 53 64 203 119 192 58 38 64 60 192 24 243
Set this up with:
LET A=length of pause-1
POKE 16515,A-256*INT(A/256)
POKE 16516,INT(A/256)
AND start it with LET L=USR 16514.
If you simply want to wait for a keypress, you can substitute this code for PAUSE 4E4:
1 REM UARNDW""/ RAND
SYNTACTIC SUM: 1047, 8K ROM
58 38 64 60 192 24 249
You can use this MC REM loader to get the numbers listed in Mather White’s articles into the REM statements. Be sure to start with line 1 containing as many X’s as bytes in the MC, then enter the numbers one at a time. Stop with STOP followed by ENTER.
1 REM XXXXXXX
2 LET A=16514
3 INPUT D
4 POKE A,D
5 LET A=A+1
6 GOTO 3
SYNTACTIC SUM: 4031, 8K ROM
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.