BASIC IS TOO slow to be of much use for dumping the contents of the Amstrad screen to a printer, but F M Collins has written a fast machine-code program to do the job. Intended for the Mannesmann Tally MT-80 printer it also works successfully with the Shinwa CPA-80, but for other Epson-type printers slight modifications may be required. A Basic loading program and assembler listing are supplied. Several NOPs are included in the assember listing, both to serve as markers and to allow space for any additional control codes required. The seven-line data bus of the 464's Centronics port has made life interesting and the 640-bit line length has had to be handled as 639 plus 1. Trying to divide the 400-line screen by 14 or 7 is not much easier, and this is taken as 28x14 + 8[:code]in the text mode and57 x 7 + 1in graphics mode. The latter prints every bit of information twice, similar to the VDU display, and gives a more acceptable aspect ratio; it also takes twice as long.Connect your printer, then enter and run the Basic loader. If you have entered the data correctly you will be prompted to enter G or T and the listing will reappear. Enter Call 43709 as a direct command and the screen will be dumped to the printer. If the printer is not connected and switched on, the Call will return directly to the Basic. Immediately before saving the program to tape, replace line 150 by 150 New and the loader can then be used to enter the machine code into the CPC-464 and delete itself before you write your own Basic program. This should use the command Call 43709 whenever a printout is required and Basic screen dump it can switch between text and graphics modes by using the Pokes in lines 100 and 105 of the loader. Holding down the space bar will abort a dump and return control to Basic. Make the first line of your program 10 MEMORY 43708: LOAD”! and the last line line60000 SAVE “YOURPROGRAM”:SAVE”!DUMP”,B,43709,192Goto 60000 will now save both the Basic and the machine code; reloading the program with Run” will load both.Ian STOBIE, Practical Compµting
★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.732-desktop/c Page créée en 549 millisecondes et consultée 190 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|