★ APPLICATIONS ★ DIVERS ★ SCREEN DUMP TO DMP-1 PRINTER ★![]() |
| Screen Dump to DMP1 (Popular Computing Weekly) | Applications Divers |
Down in the dumps Screen dumps for the CPC464 using the DMP 1 printer by Anil Jagota This routine provides the CPC464 user with a method of reproducing the CPC464's screen display on paper using the DMP1 printer. If other printers are used the machine code will have to be modified for that particular printer. The actual machine code was derived from the Basic program in Listing 1. The machine-code program has added advantages over the Basic program in that it is faster, more compact and offers more features. The features offered are double height, inverted output and abort. The machine-code version is approximately 150 times faster than the Basic version. If you own a copy of Hisoft-Devpac then Listing 2 can by typed in and compiled. If not then Listing 3 can be typed in and run. Save "filename" ,B,43650,250If you have typed in Listing 3 then first Save the Basic program before running as mistakes may cause the computer to crash. After saving the program, it can be run.When loading the program, firstly the memory must be set to 43649, this can be done by Memory 43649. To test the program simply type Call 43650. If the program has been typed in correctly then an exact copy of the screen will be on the printer. To use the extra features a location called option (located at 43897) in the program must be poked. This is done by the following line: POKE 43897,x. x is derived from the following table.
KEY: Y = yes N = no To use the last feature, which is abort, simply press the space bar for a few seconds (while the program is running), and the program will return to Basic. The machine code program uses four of the CPC464's ROM routines the first being Gra Test Absolute (&BBF0), the second Mc Busy Printer (&BD2E), the third Mc Print Char (&BD31) and, finally, the fourth Km Test Key (&BB1E). Be sure to start each screen dump on a new sheet of paper as a whole sheet is used. Also after calling the routine, the printer will remain in graphics mode and no printing can be done by the printer before the following line is entered, Print #8,Chr$(15).
|