mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-12-10 17:52:35 +00:00
f5c097e70f
- added error handling - no more massive library; just a subroutine per file. This is because Merlin doesn't like large files. - added a "minify" BASIC utility that gets rid of *most* comments in a source textfile. This dramatically reduces space used if you're not terribly interested in non-inline comments. - TFILL,THLIN,TVLIN and TPUT not directly access the video memory (page one), making for a much faster draw without interfering COUT. - some stylistic changes, primarily to TFILL - change required files to minified versions only. The whole files can be found on disk 2. - got a norovirus so pretty much couldn't do anything requiring sustained attention, so focused on small things here and not on my dayjob. Cool. - created a required.vars file that separates variables and settings from the other required files. Not minified. - This current bout of revision will probably be the last, once all initial 6 disks are revamped, that focuses on all subroutines/macros in a given library at a single push. After this round, commits will be done on a subroutine or related file basis.
31 lines
898 B
Plaintext
31 lines
898 B
Plaintext
5 HOME
|
|
8 ONERR GOTO 1000
|
|
10 PRINT "ASSEMBLY CODE MINIFIER"
|
|
20 PRINT "-=-=-=-=-=-=-=-=-=-=-="
|
|
30 PRINT
|
|
35 DIM FC$(1500):C = 0
|
|
40 INPUT "ENTER THE SOURCE FILE NAME: ";FF$
|
|
50 INPUT "ENTER THE DESTINATION FILE NAME: ";DD$
|
|
55 PRINT "WORKING.."
|
|
60 PRINT CHR$ (4);"OPEN ";FF$
|
|
70 PRINT CHR$ (4);"READ ";FF$
|
|
80 GET AA$
|
|
85 REM ? CHR$ (34);".";
|
|
90 IF AA$ = CHR$ (13) THEN GOTO 200
|
|
95 S$ = S$ + AA$
|
|
110 GOTO 80
|
|
200 IF LEFT$ (S$,1) = "*" OR LEFT$ (S$,1) = ";" THEN S$ = ""
|
|
500 FC$(C) = S$
|
|
510 S$ = ""
|
|
520 C = C + 1
|
|
990 GOTO 80
|
|
1000 PRINT : PRINT CHR$ (4);"CLOSE ";FF$
|
|
1010 PRINT CHR$ (4);"OPEN ";DD$
|
|
1020 PRINT CHR$ (4);"WRITE ";DD$
|
|
1030 FOR Z = 0 TO C
|
|
1040 IF FC$(Z) < > "" THEN PRINT FC$(Z)
|
|
1050 NEXT Z
|
|
1060 PRINT CHR$ (4);"CLOSE ";DD$
|
|
1070 PRINT "DONE!": PRINT : PRINT : PRINT
|
|
1080 PRINT CHR$ (7): PRINT CHR$ (7): PRINT CHR$ (7)
|