!pr0
!lm12
!rm75
Generic Screen Dump.............................Steve Knouse
                                                 Tomball, TX

Some computer terminals have a special key on the keyboard which will dump whatever is on the screen to a printer.  The following program will give the same function to an Apple, using the ctrl-P key.

Many different versions of screen dump programs have been written, and published hither and yon.  Most of them work with the particular author's printer and interface combination, but not mine or yours.  I found the one Bob S-C published in the July 81 issue of AAL to be like that, so I worked it over.  Now I believe it can truly be called "generic", or at least general, because it runs on every combination of printers and interfaces I can find.

I tested it on systems using the following interfaces:

       Epson APL
       Orange Micro Grappler, Grappler+, & Buffered Grappler+
       Practical Peripherals Microbuffer II
       SSM AIO II & ASIO
       Tymac Parallel
       Videx PSIO

The screen dump should work with any interface which recognizes the Apple standard method for turning off video output.  The standard is to "print" a control-I followed by an "N".  Lines 2190 through 2250 perform the output of these two characters.

The only board I found which did not work with this convention was the SSM AIO board, so the program which follows has a special conditional assembly mode to make it assembly slightly different object code for that board.  If you have that board, change line 1610 to say "VERSION .EQ AIO" and it will assembly your version.  Instead of Lines 2190 through 2250 being assembled, lines 2260 through 2310 will.  They do not show up in the listing, so here they are:

       2260    .DO VERSION=AIO
       2270    LDA #$80
       2280    JSR COUT
       2290    LDX SLOT
       2300    STA NOVID,X
       2310    .FIN

If your assembler does not support conditional assembly, you can merely type in the lines 2270-2300 above in place of lines 2190-2310.

If your printer interface is not plugged into slot 1, change the slot number in line 2030, or at $0319.

Install the program by BRUNning the binary file of the object code, or by BLOADing it and doing a CALL768.  Then whenever you type control-P, the screen will be printed.  You can also call the screen dump from a running Applesoft program with CALL 794.
