Pixel Print PLUS/PROFESSIONAL Selectable LOADs and SAVEs! (Idea from Bill Ferrebee)
How many times have you wished that you could Save or Load just a part of a Pixel Print column, but perhaps more than a SCREEN$?
This is the wish that spawned the Selectable Load/Save mod!
The way it will work is that when you select the SAVE command from the DTP menu, you will be asked to specify the following:
1) the Starting Line number
2) the Ending Line number
Just press enter at each prompt to save the entire file… the default Starting Line number is line 0 (top), and the default Ending Line number is line 93 (bottom).
But, if you specify a starting and ending line number, the program will save only that much of your column! Obviously, the trick is going to be to count the right number of lines! Each line is defined to be the height of the cursor in the standard 8 point font size (8 pixels high). So, count the number of times you move the cursor down the page… also, the MOVE command moves at 1/8, 1, and 8 line increments… so you can also count the number of scroll-moves you make.
To LOAD, you will only be asked for the Starting Line number, this is the place to begin to LOAD a file. It is left up to the USER to insure that there is enough room in the column to LOAD a specific column. For example, to LOAD a full size column starting at line 2 will certainly over-run the alotted column memory, and might very well cause the program to “CRASH!!”.
Making the Modification:
This program modification takes quite a bit of memory to implement, so before we can actually start adding and “code”, we need to clear some space!
1) make a new personal copy of your “customized” Pixel Print PLUS! or Professional! LOAD it.
2) Go through the BASIC and convert all GOTO number, and GOSUB number , and PRINT #0… etc. commands to say:
GOTO VAL “number” or
GOSUB VAL “number”…
Change each “0” to “NOT PI”.
You need to FREE enough memory that when you PRINT FREE, you get at least 580 bytes of free memory. (When you Load it, let it run, then select SAVE and BREAK the program… this way RAMTOP will already be set for you).
Now you are ready to type in the program modification. Select the listing for your version of the program, type in the changes, SAVE it… and experiment a little to get a feel of how it works.
*** Lines 5200 – 9369 are common to all versions except v3.2 (AERCO), see below ***
5200 GO SUB VAL "4200": IF T THEN GO SUB VAL "9360": GO SUB VAL "9362": GO SUB VAL "9400"
6200 GO SUB VAL "4200": IF T THEN GO SUB VAL "9360": LET D=VAL "94": GO SUB VAL "9410"
9360 LET S= NOT PI: INPUT "Starting Line: "; LINE B$: IF LEN B$ THEN LET S=VAL B$: IF S < NOT PI OR S>VAL "93" THEN GO SUB VAL "9369": GO TO VAL "9360"
9361 RETURN
9362 LET D=VAL "93": INPUT "Ending Line: "; LINE B$: IF LEN B$ THEN LET D=VAL B$: IF D<S OR D>VAL "93" THEN GO SUB VAL "9369": GO TO VAL "9362"
9363 RETURN
9369 BEEP .01,30: PRINT #NOT PI; AT NOT PI,NOT PI;" Address Error..... Try Again!! ": PAUSE VAL "120": RETURN
*** Type in lines 9400/9410 for your particular Version ***
PIXEL PRINT PLUS! (v3.1) or PIXEL PRINT PROFESSIONAL! for CASSETTE (v3.3) or for Microdrive (v3.4)
9400 GO SUB VAL "9350": SAVE A$CODE VAL "41300"+S*VAL"256",(D-S+VAL "1")*VAL "256": GO SUB VAL "2100": RETURN
9410 GO SUB VAL "9350": LOAD A$CODE VAL "41300"+S*VAL "256": GO SUB VAL "2100": RETURN
PIXEL PRINT PROFESSIONAL! for OLIGER DISK VERSION (v3.5)
9400 GO SUB VAL "9350": SAVE /A$CODE VAL "41300"+S*VAL"256",(D-S+VAL "1")*VAL "256": GO SUB VAL "2100": RETURN
9410 GO SUB VAL "9350": LOAD /A$CODE VAL "41300"+S*VAL "256": GO SUB VAL "2100": RETURN
PIXEL PRINT PROFESSIONAL! for LARKEN DISK VERSION (v3.6)
9400 GO SUB VAL "9350": LET A$=A$+".CD": PRINT #VAL "4": SAVE A$CODE VAL "41300"+S*VAL "256",(D-S+VAL "1")*VAL "256": GO SUB VAL "2100": RETURN
9410 GO SUB VAL "9350": LET A$=A$+".CD": PRINT #VAL "4": LOAD A$CODE VAL "41300"+S*VAL "256": GO SUB VAL "2100": RETURN
PIXEL PRINT PROFESSIONAL! for AERCO DISK VERSION (v3.2)
5200 GO SUB VAL "4200": IF T THEN GO SUB VAL "9360": GO SUB VAL "9362": GO SUB VAL "9400": MOVE "A$",
6200 GO SUB VAL "4200": IF T THEN GO SUB VAL "9360": LET D=VAL "93": GO SUB VAL "9400": CAT "A$",
9360 LET S= NOT PI: INPUT "Starting Line: "; LINE B$: IF LEN B$ THEN LET S=VAL B$: IF S < NOT PI OR S>VAL "93" THEN GO SUB VAL "9369": GO TO VAL "9360"
9361 RETURN
9362 LET D=VAL "93": INPUT "Ending Line: "; LINE B$: IF LEN B$ THEN LET D=VAL B$: IF D<S OR D>VAL "93" THEN GO SUB VAL "9369": GO TO VAL "9362"
9363 RETURN
9369 BEEP .01,30: PRINT #NOT PI; AT NOT PI,NOT PI;" Address Error..... Try again!! ": PAUSE VAL "120": RETURN
9400 GO SUB VAL "9350": LET A$=A$+".BIN"","+STR$ (VAL "41300"+S*VAL "256")+","+STR$ ((D-S+VAL "1")*VAL "256"): RETURN