home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib19b.dsk
/
MAIN.VERSION.3.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
626b
|
19 lines
10 REM ---MAIN PROGRAM
20 HOME : PRINT "** COPYRIGHT 1984 BY MICROSPARC, INC. **": PRINT : PRINT CHR$(4);"BLOAD OVLY.OBJ": CALL 37088
30 DIM D%(100)
40 INPUT "NAME OF DATA FILE ? ";DF$
50 & OVERLAY,500 -599,DF$: REM GET THE DATA TO SORT
60 GOSUB 300: REM GOSUB THE READ ROUTINE
70 & OVERLAY,300 -399,"SORT"
80 GOSUB 300: REM GOSUB THE SORT ROUTINE
90 & OVERLAY,300 -399,"OUTPUT"
100 GOSUB 300: REM GOSUB THE OUTPUT ROUTINE
110 PRINT "NO ERRORS. NORMAL TERMINATION."
120 END
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