BLANK_EXE

Author(s): Real Gagnon
Publication: LISTing Newsletter
Date: August 1991
Pages: 11

A program to help protect your QL monitor.

BLANK_EXE is a little program helping to preserve the phospore inside of your CRT by “blanking” the screen when there is no keyboard activity for a certain period of time. To execute BLANK_EXE, type: EXEC xxxx_BLANK_EXE (where xxxx is the device containing BLANK_EXE).

To create the program, type in the Superbasic hexloader in listing 1.

The program is very simple. First, we check the last key pressed by looking at a system variable, then we verify if its the same as the previous one. If its the same, we increment a counter, if its not the same, the counter equals zero. If the counter reaches a certain limit, then we blank the screen by POKEing the value 2 into address 98403. To bring back the screen we have to POKE 0 at the same address. We will do it only when the SPACE BAR is pressed.

LISTING 1 (Superbasic)

10 REMark BASIC LOADER for BLANK_EXE
20 :
30 REMark by Real Gagnon-o88
40 :
100 RESTORE 1000:a=RESPR(1000):base=a
110 count=0
120 REPeat l
130 IF EOF:EXIT l
140 READ x
150 POKE a,x
160 a=a+1
170 count=count+6
180 END REPeat l
190 SEXEC flp2_BLANK_EXE,base,count,100:STOP
1000 DATA 96, 28, 0, 0, 0, 4, 74, 251, 0, 20
1001 DATA 66, 76, 65, 78, 75, 95, 115, 99, 114, 101
1002 DATA 101, 110, 32, 98, 121, 32, 82, 71, 56, 55
1003 DATA 114, 255, 116, 1, 112, 11, 78, 65, 67, 250
1004 DATA 0, 110, 48, 57, 0, 2, 128, 138, 50, 128
1005 DATA 48, 58, 0, 98, 50, 57, 0, 2, 128, 138
1006 DATA 178, 64, 102, 0, 0, 26, 67, 250, 0, 84
1007 DATA 82, 145, 32, 60, 0, 37, 0, 0, 176, 186
1008 DATA 0, 72, 103, 0, 0, 24, 96, 0, 255, 218
1009 DATA 67, 250, 0, 58, 50, 129, 67, 250, 0, 54
1010 DATA 112, 0, 34, 128, 96, 0, 255, 200,34, 124
1011 DATA 0, 1, 128, 99, 112, 2, 18, 128, 48, 57
1012 DATA 0, 2, 128, 138, 176, 124, 0, 32, 103, 0
1013 DATA 0, 6, 96, 0, 255, 240, 34, 124, 0, 1
1014 DATA 128, 99, 112, 0, 18, 128, 96, 0, 255, 198
1015 DATA 0, 0, 0, 0, 0, 0

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.