CODINGLISTINGS ★ A quick clean-up ★

FastCLS (CPC Computing)Coding Listings
★ 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 ★ 

WITH regard to Ian Sharpe's article on fast machine code in the August issue, and in particular his challenge to find a faster way of filling a block of memory, here is my solution.

Although billed as a way of filling a block of memory, the source code in the article was specifically set up to dear the screen, in other words fill the screen memory with zeros.

My version, although longer in terms of space, is nearly four times faster than the quicker of the two examples quoted. It works by relocating the stack to the top of screen memory and repeatedly pushing HL, which is primed with zero.

The routine assumes that the screen has not been scrolled. Entry conditions: Screen must not be scrolled. Exit conditions: None - all registers preserved.

Ian Hoare, London. , CPC Computing

★ PUBLISHER: CPC Computing
★ YEAR: 1988
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ COLLECTION: COMPUTING WITH THE AMSTRAD 1988
★ AUTHOR: Ian Hoare
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» FastCLS    (CPC  Computing)    ENGLISH    LISTINGDATE: 2021-02-02
DL: 191
TYPE: PDF
SiZE: 54Ko
NOTE: 2 pages/PDFlib v1.6

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Coding Src's » Triangles (The Amstrad User)
» Coding Src's » Triangles (Dale Clinton)
» Coding Src's » Escher's Triangle (CPC Computing)
» Coding Src's » Triangles (Amstrad Computer User)
» Coding Src's » Rotating triangle
» Coding Src's » Circle of Triangles (Computing with the Amstrad)
Je participe au site:
» Pour ce titre nous ne disposons de fichier executable sur CPC (Saisie du listing) , alors si vous avez ça dans vos cartons ou vous désirez usé vos petit doigts boudinés sur votre clavier faites le nous savoir.
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 510 millisecondes et consultée 853 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.