APPLICATIONSDIVERS ★ Easier inversions ★

Invert RSX (Computing with the Amstrad)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 ★ 

IN a menu-driven program it is useful to be able to highlight a selection by inverting the text and paper colours.

It is possible to do this in Basic either by printing CHR$(24) or by exchanging pen and paper inks using Basic's INK command, and reprinting the text.

This must be repeated to return the block to normal and becomes very unwieldy.

This short program sets up an RSX to invert characters on the screen without reprinting.

The command works in any mode and can be used in two ways. Firstly:

|INVERT,column, row, length

will invert length character cells (up to 256) starting at location column,row. Parameter values off the screen can cause unexpected results but will not generate an error.

The second form of the RSX is :

|INVERT,col,row,len,pen,pen

If the last two parameters are omitted the default values are 1 and 0. If other values are used the pens are XORed with those on the screen and can give interesting colour effects. Repeat the command to restore the text to normal.
The machine code loads to &A500 but can easily be relocated to any &100 boundary. To do this change the two A5s in line 140 and the two in line 150 to the high-byte of the new address. You will also need to modify MEMORY, CALL and adr appropriately. Also you have to either modify the checksums or omit line 120. -

CWTA

★ PUBLISHER: Computing with the Amstrad
★ YEAR: 1987
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ COLLECTION: COMPUTING WITH THE AMSTRAD 1987
★ AUTHOR: D. Holmes (Bristol)
 



★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Invert  RSX    (Computing  with  the  Amstrad)    ENGLISH    LISTINGDATE: 2020-08-04
DL: 434
TYPE: PDF
SiZE: 24Ko
NOTE: 1 page/PDFlib v1.6

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

Lien(s):
» Applications » Bildschirm Invertiert (Compute Mit)
» Applications » Invertierungs routine (Schneider CPC-Welt)
» Applications » Inversion d'Ecran
» Applications » Transparence Tag et Inversion Video (CPC Revue)
» Applications » Inversión, inversión
» Applications » Evaluador De Expresiones : Usando La Notacion Polaca Inversa (Amstrad Semanal)
Je participe au site:
» Pour ce titre nous ne disposons de fichier executable sur CPC (Dump, 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.732-desktop/c
Page créée en 775 millisecondes et consultée 1252 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.