home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib19b.dsk
/
MAIN.VERSION.2.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
1KB
|
37 lines
10 REM ---MAIN PROGRAM
20 PRINT CHR$(4);"BLOAD OVLY.OBJ": CALL 37088
30 DIM D%(100)
40 HOME : PRINT "** COPYRIGHT 1984 BY MICROSPARC, INC. **": PRINT : PRINT "OVERLAYS WILL OVERWRITE": PRINT "LINES 300-399": PRINT
50 GOSUB 200
60 PRINT "READING DATA.."
70 GOSUB 300: REM GOSUB THE READ ROUTINE
80 PRINT "OVERLAYING SORT.."
90 & OVERLAY,300 -399,"SORT"
100 GOSUB 200
110 PRINT "SORTING DATA.."
120 GOSUB 300: REM GOSUB THE SORT ROUTINE
130 PRINT "OVERLAYING OUTPUT.."
140 & OVERLAY,300 -399,"OUTPUT"
150 GOSUB 200
160 PRINT "PRINTING DATA.."
170 GOSUB 300: REM GOSUB THE OUTPUT ROUTINE
180 PRINT "NO ERRORS. NORMAL TERMINATION."
190 END
200 REM ---THIS ROUTINE TO OPTIONALLY
210 REM ---LIST LINES 300-399
220 PRINT "<RETURN> TO CONTINUE OR"
230 PRINT "TYPE 'L' TO LIST LINES 300-399"
240 GET A$: IF A$ = "L" THEN LIST 300 -399: GOTO 260
250 IF A$ = CHR$(13) THEN PRINT : RETURN
260 PRINT : GOTO 220
300 REM ---READ DATA INTO D%()
310 N = 0: RESTORE
320 READ T
330 IF T <0 THEN RETURN
340 N = N +1
350 D%(N) = T
360 GOTO 320
500 REM ---DATA TO SORT
510 DATA 11,2345,45,234,6,68,556,56,75,345
520 DATA 234,233,3978,7768,678,79,6,56,7
530 DATA -1