Although we often do not bother to save the SCREEN$ portion of a program to disk, since it’s appearance is so transient, there are occasions when saving a SCREEN$ display is desirable. The following program will facilitate the process.
The program is very straight-forward, however one or two points should be noted. LINE 10 is used to SAVE the SCREEN$. A successful SCREEN$ SAVE depends on masking the LDOS cursor which normally appears on the screen during a DOS operation. We do this by ensuring that the DOS cursor positions itself in a plain background area of the SCREEN$ to be saved, and by making the PAPER and INK the same color as the background.
This will require that you load the SCREEN$ first to determine where the LDOS cursor should be placed.
The listing below was used on a program where there was suitable length of magenta background on the left-hand side of line 1, therefore “PAPER 3:INK 3:PRINT AT 1,0;” was appropriate. Revise LINE 10, and also LINE 20; according to the need of the particular SCREEN$ to be saved.
Once this SAVE program has been loaded and revised per above, RUN it, place a disk in your drive and load the SCREEN$ from tape. When SCREEN$ finishes loading this program will immediately save it to disk. To verify, press any key, and the SCREEN$ will reload.
Lines 20 and 30 are used to load the screen display back into the computer, and are included here so that a successful SAVE can be verified. Normally they would be used in another program loading routine. Note the use of the same “PAPER 3: INK 3: PRINT AT 1,0”, as was used to SAVE the display initially.
10 CLEAR 61000: OUT 84,64: POKE 23540,0: POKE 23541,64: POKE 23542,0: POKE 23543,27: CLS : LOAD ""CODE : PAPER 3: INK 3: PRINT AT 1,0;: PRINT USR 63488: REM save"sweevo.C2"
15 PAUSE 0
20 PAPER 3: INK 3: CLS : PRINT AT 1,0: PRINT USR 63488: REM load"sweevo.C2"
30 PRINT #1;AT 1,5; FLASH 1; INK 7; PAPER 0;"Press any key to start": PAUSE 0
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.