home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib23a.dsk
/
JANUARY.1985
/
WINDER.bas
< prev
Wrap
BASIC Source File
|
2023-02-26
|
2KB
|
59 lines
10 REM ************************
20 REM * WINDER *
30 REM * BY MIKE SEEDS *
40 REM * COPYRIGHT (C) 1985 *
50 REM * BY MICROSPARC, INC *
60 REM * CONCORD, MA. 01742 *
70 REM ************************
80 DIM WS$(24)
90 HOME : PRINT : PRINT TAB( 9)"FOR WHOM THE BELL BONGS"
100 PRINT : PRINT TAB( 15)"BY A. MONKEY": PRINT : PRINT
110 FOR J = 1 TO 8
120 FOR K = 1 TO 40: PRINT CHR$(64 +26 * RND(1));: NEXT K: PRINT
130 NEXT J
140 VTAB 23: PRINT "PRESS ANY KEY TO HALT."
150 WL = 12:WT = 10:WW = 10:WB = 5: GOSUB 390: REM OPEN WINDOW
160 PRINT : PRINT "GOT IT?"
170 GOSUB 350: REM DELAY
180 GOSUB 560: REM CLOSE WINDOW
190 IF PEEK(49152) >128 THEN TEXT : HOME : END
200 WL = 5:WT = 1:WW = 25:WB = 7
210 GOSUB 390: REM OPEN WINDOW
220 VTAB WT +2: HTAB 4: PRINT "NOTICE THE TEXT IS": HTAB 4: PRINT "RESTORED CORRECTLY."
230 GOSUB 350: REM DELAY
240 GOSUB 560: REM CLOSE WINDOW
250 IF PEEK(49152) >128 THEN TEXT : HOME : END
260 WT = 10:WB = 10: GOSUB 390
270 FOR J = 1 TO 25: PRINT " ";J,J *J: NEXT J
280 PRINT : PRINT "SCROLLING IS AUTOMATIC"
290 GOSUB 350: GOSUB 560
300 IF PEEK(49152) >128 THEN TEXT : HOME : END
310 GOTO 150
320 REM ==========
330 REM DELAY
340 REM ==========
350 FOR J = 1 TO 1500: NEXT : RETURN
360 REM ===================
370 REM SUBROUTINE WINDOW
380 REM ===================
390 WA = 1024 +128 *(WT -1 -8 * INT((WT -1)/8)) +40 * INT(WT/8.5)
400 WS = WA
410 FOR WJ = WT TO WT +WB -1:WS$(WJ) = ""
420 FOR WK = 1 TO WW:WS$(WJ) = WS$(WJ) + CHR$( PEEK(WA +WL +WK -1)): NEXT WK
430 POKE WA +WL,32: POKE WA +WL +WW -1,32
440 WA = WA +128: IF WA = 2088 THEN WA = 1104
450 IF WA = 2048 THEN WA = 1064
460 NEXT WJ
470 FOR WJ = 1 TO WW: POKE WS +WL +WJ -1,32: POKE WA -128 +984 *(WA = 1064 OR WA = 1104) +WL +WJ -1,32: NEXT WJ
480 REM SET TEXT SCREEN
490 POKE 32,WL +1: POKE 33,WW -2
500 POKE 34,WT: POKE 35,WT +WB -2
510 HOME
520 RETURN
530 REM ================
540 REM SUBROUTINE CLOSE
550 REM ================
560 POKE 32,0: POKE 33,40
570 POKE 34,0: POKE 35,24
580 FOR WJ = WT TO WT +WB -1: VTAB WJ: HTAB WL +1: PRINT WS$(WJ): NEXT WJ
590 RETURN