home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib26b.dsk
/
WAIT.4.bas
< prev
Wrap
BASIC Source File
|
2023-02-26
|
790b
|
19 lines
10 REM ***************
20 REM * *
30 REM * WAIT.4 DEMO *
40 REM * *
50 REM ***************
60 REM
70 REM ANY CHARACTER WITH ASCII CODES 32-63 OKAY
80 TEXT : HOME
90 POKE -16368,0
100 VTAB 4: PRINT "PRESS ANY KEY. ": PRINT : PRINT "HOWEVER, ONLY ASCII CODES 32-63 WILL": PRINT "BE ACCEPTED"
110 PRINT "THESE CODES ARE MOSTLY THE SYMBOLS ": PRINT "AND THE NUMBERS-NO LETTERS ALLOWED !"
120 PRINT : PRINT "ANOTHER WAY TO SCREEN KEYBOARD INPUT !": PRINT : PRINT
130 POKE -16368,0
140 WAIT -16384,32,15
150 IF PEEK( -16384) >224 THEN 140
160 PRINT "YOU PRESSED ASCII CODE # "; PEEK( -16384) -128
170 PRINT : PRINT "THE CHARACTER IS '";: PRINT CHR$( PEEK( -16384) -128);"'"
180 PRINT CHR$(7): PRINT "END OF DEMO"
190 PRINT "-----------"