home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib42b.dsk
/
QS.DEMO.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
3KB
|
87 lines
10 REM **********************
12 REM * QUICKSHOW DEMO *
14 REM * by Doug Denby *
16 REM * Copyright (C) 1992 *
18 REM * MindCraft Publ. *
20 REM * Lincoln, MA 01773 *
30 REM **********************
40 TEXT : HOME
50 GOTO 70
60 DRAW 100 AT X,Y: CALL 768: RETURN
70 D$ = CHR$(4)
80 PRINT D$;"BLOAD WESTERN.FONT,A$4000"
90 POKE 232,0: POKE 233,64
100 PRINT D$;"BLOAD QUICKSHOW,A768"
110 HGR : HCOLOR= 3: ROT= 0: SCALE= 1: POKE -16302,0
120 X = 0:Y = 0
130 SCALE= 1: HCOLOR= 3
140 S$ = "This demonstrates the speed with"
150 Y = 30: GOSUB 60
160 S$ = "which shape fonts can easily be"
170 Y = 45: GOSUB 60
180 S$ = "placed on the screen."
190 Y = 60: GOSUB 60
200 HPLOT 23,120 TO 150,120
210 HPLOT TO 150,105
220 HPLOT TO 60,105
230 HPLOT 105,105 TO 105,95
240 HPLOT TO 76,95
250 HPLOT TO 60,105
260 HPLOT TO 30,110
270 HPLOT TO 23,120
280 HPLOT 35,120 TO 37,124 TO 43,128 TO 49,124 TO 51,120
290 HPLOT 120,120 TO 122,124 TO 128,128 TO 134,124 TO 136,120
300 HPLOT 165,100 TO 190,85
310 CALL 62923:X = 10 + PEEK(224) + PEEK(225) *256
320 Y = PEEK(226)
330 S$ = "Pickup": GOSUB 60
340 Y = Y +20:S$ = "a COPY!": GOSUB 60
350 S$ = "QuickShow":X = 0:Y = 135: HCOLOR= 2: GOSUB 60
360 CALL 62923:X = PEEK(224) + PEEK(225) *256:Y = PEEK(226)
370 S$ = "is a machine-code": HCOLOR= 3: GOSUB 60
380 Y = Y +15:X = 0:S$ = "utility that is totally relocatable,": GOSUB 60
390 S$ = "easily used with Applesoft BASIC,":Y = Y +15: GOSUB 60
400 S$ = "only 136 bytes, and from ":Y = Y +15: GOSUB 60
410 CALL 62923:X = PEEK(224) + PEEK(225): HCOLOR= 5:S$ = "NIBBLE!": GOSUB 60
420 S$ = "QuickShow Demo"
430 SCALE= 2:X = 0
440 Y = 0
450 FOR C = 0 TO 7
460 HCOLOR= C
470 GOSUB 60
480 IF PEEK( -16384) >127 THEN 590
490 FOR I = 1 TO 50: NEXT I
500 NEXT C
510 Y = 1
520 FOR C = 0 TO 7
530 HCOLOR= C
540 IF PEEK( -16384) >127 THEN 590
550 FOR I = 1 TO 50: NEXT I
560 GOSUB 60
570 NEXT C
580 IF PEEK( -16384) <128 THEN 110
590 POKE -16368,0: REM CLR KEYS
600 CALL 62450
610 SCALE= 1: HCOLOR= 3
620 Y = 20:S$ = "Want to see it again?"
630 GOSUB 60
640 S$ = "Press `Y' or `N'. ":Y = Y +20: GOSUB 60
650 CALL 62923:X = PEEK(224) + PEEK(225) *256
660 S$ = "_"
670 REM LOOK FOR RESPONSE
680 HCOLOR= 3
690 GOSUB 60
700 FOR C = 0 TO 60
710 IF PEEK( -16384) >127 THEN 780
720 NEXT C
730 HCOLOR= 0: GOSUB 60
740 FOR C = 0 TO 60
750 IF PEEK( -16384) >127 THEN 780
760 NEXT C
770 GOTO 670
780 A$ = CHR$( PEEK( -16384) -128)
790 POKE -16368,0
800 IF A$ = "Y" OR A$ = "y" THEN 110
810 IF A$ = "N" OR A$ = "n" THEN 830
820 GOTO 670
830 TEXT : HOME