APPLICATIONSDIVERS ★ SCREEN DUMP ★

Screen Dump|Your Computer)Applications Divers
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

Eyemouth, Berwickshire Since I obtained a Brother M-10009 printer I have, of course, been plugging-in various routines to try and fully utilise its capabilities. However, because for some reason beyond my comprehension the Amstrad CPC-464 does not send bit 7 to the printer, some 50 per cent of the excellent printer characters are unavailable to me. In fact, I can't even get the printer's £-sign!

I therefore quickly became interested in the idea of a screen-dump, and have been plugging in every such program that I have been able to find.

However, I was unable to find one that satisfied my needs, so I decided to knuckle down and write my own.

This screen dump is different from most in that it is designed for A4 size paper, somewhat wider than usual. Also, rather that dumping the whole screen, it dumps one line only, which is selected by sending a parameter — the line-number — to the machine-code. The whole screen can therebye be dumped from Basic, if required, or any line or set of lines that you may happen to require. The parameter can be either a constant or a variable.

In order to make up the additional width, I have arranged for the four horizontal bits that must

be interpreted from the display to be translated into six bits to be set to the printer. In order to retain squareness, I matched this vertically, so that each printed character is in fact twelve bits high rather than the usual eight. This has resulted in a "chunky" look which I find rather nice. Line-drawings, such as circles and squares, are therefore true in shape.

The Basic Loader enables the machine code to be placed anywhere in Ram above Hi men — space is reserved if necessary. The complete code and variables occupies 253 bytes. Provision is also made for printers with a minimum line-feed unit of 1/36", instead of the 1/72" that is available to me — in fact, the M-10009 has a minimum line-feed capability of 1/216", but I do not use that in this routine.

Because the printer has to make two passes for each line of print, the net printing speed is reduced accordingly, but this is more than compensated for by the additional graphics capability. In fact, anything that can be displayed on the screen can be copied to the printer. Note, however, that the graphics origin must be 0,0 before the machine code is called.

The machine code does not assume ink 0 to be the paper ink, but tests to see what ink the paper is set to. That is the only colour not printed — all other inks are dumped.

Your Computer

★ PUBLISHER: Your Computer
★ YEAR: 1985
★ AUTHOR: Nick Godwin

★ AMSTRAD CPC ★ DOWNLOAD ★

Je participe au site:
» Newfile(s) upload/Envoye de fichier(s)
★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Coding Src's » Graphic - Psychedelic Strobe
» Coding Src's » Sound - onzieme sonate de MOZART
» Coding Src's » Graphic - Puddle (Computing With the Amstrad)
» Coding Src's » Cinemascope
» Coding Src's » 3D Shape Rotator
» Coding Src's » Berceuse

QUE DIT LA LOI FRANÇAISE:

L'alinéa 8 de l'article L122-5 du Code de la propriété intellectuelle explique que « Lorsque l'œuvre a été divulguée, l'auteur ne peut interdire la reproduction d'une œuvre et sa représentation effectuées à des fins de conservation ou destinées à préserver les conditions de sa consultation à des fins de recherche ou détudes privées par des particuliers, dans les locaux de l'établissement et sur des terminaux dédiés par des bibliothèques accessibles au public, par des musées ou par des services d'archives, sous réserve que ceux-ci ne recherchent aucun avantage économique ou commercial ». Pas de problème donc pour nous!

CPCrulez[Content Management System] v8.7-desktop/cache
Page créée en 102 millisecondes et consultée 525 fois

L'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.