home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib28b.dsk
/
SHOW.DEMO.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
3KB
|
85 lines
10 REM **********************
20 REM * SHOW.DEMO *
30 REM * BY STEPHEN LEW *
40 REM * COPYRIGHT (C) 1986 *
50 REM * BY MICROSPARC, INC *
60 REM * CONCORD, MA 01742 *
70 REM **********************
80 IF PEEK(104) < >64 THEN POKE 103,1: POKE 104,64: POKE 16384,0: PRINT CHR$(4)"RUNSHOW.DEMO"
90 PRINT CHR$(4)"BLOADCHAR.SET"
100 PRINT CHR$(4)"BRUNSHOW"
110 & NEW " STANDARD HIRES OUTPUT WINDOWS (SHOW)",1,38,2,23
120 POKE 32,2: POKE 33,36: POKE 34,3: POKE 35,22: & HOME
130 VTAB 22: PRINT "S.H.O.W." TAB( 14)"WRITTEN BY STEPHEN LEW"
140 PRINT "COPYRIGHT 1986 BY MICROSPARC, INC."
150 VTAB 4: HTAB 1: PRINT "WELCOME TO SHOW,"
160 PRINT : PRINT "A HIRES GRAPHICS-WINDOW PROGRAM."
170 VTAB 10: PRINT "THIS PROGRAM IS DESIGNED TO ALLOW"
180 PRINT : PRINT "YOU TO INCORPORATE PROFESSIONAL-"
190 PRINT : PRINT "LOOKING WINDOWS INTO YOUR PROGRAMS!"
200 PRINT
210 PRINT : GOSUB 840
220 & STORE 2,15,3,10
230 PRINT "FIRST, YOU NEED";
240 PRINT "TO INITIALIZE"
250 PRINT "THE SYSTEM WITH"
260 INVERSE : PRINT "&NEW A$,L,W,T,B": NORMAL
270 GOSUB 840
280 & RESTORE : & STORE 19,19,3,10
290 PRINT "ONCE EVERYTHING IS"
300 PRINT "INITIALIZED, THE": PRINT "COMMANDS:";
310 INVERSE : PRINT "&DRAW";: NORMAL : PRINT " AND"
320 INVERSE : PRINT "&STORE";: NORMAL : PRINT " CAN BE USED"
330 PRINT "TO OPEN UP A WINDOW";
340 PRINT "ON THE SCREEN."
350 GOSUB 840
360 & RESTORE : & STORE 2,10,10,15
370 PRINT "THESE TWO COMMANDS"
380 PRINT "ARE ALMOST";
390 PRINT "THE SAME "
400 PRINT "EXCEPT...";
410 GOSUB 850
420 & RESTORE : & STORE 13,18,10,16
430 INVERSE : PRINT "&STORE";: NORMAL : PRINT " ALLOWS YOU"
440 PRINT "TO RESTORE THE OLD";
450 PRINT "WINDOW WITH THE"
460 PRINT "COMMAND: ";: INVERSE : PRINT "&RESTORE": NORMAL
470 PRINT : GOSUB 840
480 & RESTORE : & STORE 2,17,15,22
490 PRINT "ONE FINAL COMMAND"
500 INVERSE : PRINT "&HOME";: NORMAL : PRINT " IS USED TO"
510 PRINT "CLEAR THE HIRES"
520 PRINT "WINDOW."
530 PRINT : GOSUB 840
540 & RESTORE : & DRAW 9,21,5,10
550 PRINT "NOW THAT YOU KNOW THE";
560 PRINT "COMMANDS, HERE'S WHAT";
570 PRINT "YOU CAN DO..."
580 PRINT : GOSUB 840
590 FOR I = 1 TO 10
600 & STORE I +4,5,I +3,I +8: PRINT I
610 FOR J = 1 TO 500: NEXT
620 NEXT
630 FOR I = 1 TO 10: & RESTORE
640 FOR J = 1 TO 500: NEXT
650 NEXT : & HOME
660 PRINT "LET'S DO IT AGAIN,"
670 PRINT "ONLY FASTER...."
680 PRINT : GOSUB 840
690 FOR I = 1 TO 10
700 & STORE I +3,5,I +3,I +8: PRINT I
710 NEXT : FOR I = 1 TO 10
720 & RESTORE : NEXT : & NEW " COLORS BRUSHES SHAPES PRINTER FILE",1,38,2,22
730 VTAB 5: PRINT "YOU CAN EVEN SIMULATE PULL DOWN MENUS"
740 PRINT : GOSUB 840
750 & STORE 1,6,1,7: INVERSE : PRINT "RED ";
760 NORMAL : VTAB 3: PRINT "BLUE": PRINT "VIOLET": VTAB 5: PRINT "GREEN": PRINT "BLACK": PRINT "WHITE";
770 FOR J = 1 TO 4000: NEXT
780 & RESTORE
790 & HOME : PRINT "THE POSSIBILITIES ARE ENDLESS!"
800 PRINT
810 PRINT : GOSUB 840
820 & DRAW 1,38,2,23
830 END
840 PRINT "PRESS ";: INVERSE : PRINT "RETURN";: NORMAL
850 WAIT 49152,128: POKE 49168,0: RETURN