home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib12.dsk
/
FAST.GOTO.DEMO.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
966b
|
37 lines
1 REM ***********************
2 REM * FAST.GOTO DEMO *
3 REM * BY DALE WADDELL *
4 REM * COPYRIGHT (C) 1983 *
5 REM * BY MICROSPARC, INC. *
6 REM * LINCOLN, MA. 01773 *
7 REM ***********************
10 PRINT CHR$(4)"BRUN FAST.GOTO.OBJ0"
20 S1 = 100: GOSUB S1
30 S2% = 200: GOSUB S2%
40 GOSUB S1 +S2%
50 GOTO 400
60 GOTO S1 +400
90 GOTO 1020
100 PRINT "THIS IS 100": RETURN
200 PRINT "THIS IS 200": RETURN
300 PRINT "THIS IS 300": RETURN
400 PRINT "THIS IS 400": GOTO 60
450 PRINT "THIS IS 450": GOTO 1060
500 PRINT "THIS IS 500": GOTO 90
550 PRINT "THIS IS 550": GOTO 1090
1020 S1 = 100: GOSUB S1
1030 S2% = 200: GOSUB S2%
1040 GOSUB S1 +S2%
1050 GOTO 450
1060 GOTO S1 +450
1090 A$ = "1500"
1100 GOTO VAL(A$)
1400 STOP
1500 PRINT "THIS IS LINE 1500"
1600 B$ = "ABC2000DEF"
1610 L = 4:M% = 4
1620 GOTO VAL( MID$ (B$,L,M%))
1900 STOP
2000 PRINT "THIS IS LINE 2000"
2100 & HOME : REM REMOVE FAST.GOTO
2500 END