APPLICATIONSCREATION GRAPHIQUE ★ RSX DEFINE/PLACE (POPULAR COMPUTING WEEKLY) ★

A new imageEverything in its place
★ 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 ★ 

Part two of Brian Cadge's graphics command program for the CPC 464

This week we finish off with the rest of the assembler listing and some more detail about the workings of the program itself.

The | Place command simply replaces a previously stored image at the character position given. The coordinates, xpos and xpos are as used by the Locate command, the program automatically takes into account the current mode.

These commands are fairly idiot proof — you cannot display an image which has not yet been defined. However, take care to keep Himem right, as defining more images than you have reserved space for could cause Basic to be corrupted.

The advantages of using these new commands over using normal UDG characters is that they can be different shapes and can contain as many colours as the mode allows. They also operate a lot faster than using Print, which is useful in fast games.

Moving on to the workings of the program. The program begins by defining the new commands, done by setting up the registers and making a call to the Firmware at $BCD1 which Logs an RSX onto the operating system.

When a command is encountered, control is passed to the routine via the jump table. The A register then contains the number of parameters passed in the command, and IX points to the last parameter, IX+2 points to the last but one and so on.
The IY register is undefined when the RSX is in Ram.

Two other Rom routines are used. The first is at $BC1A which returns the screen Ram address of the character position given in HL (H=column, L=row), top left of the screen at position (0,0). This is needed as hardware scrolling used on the Amstrad means that the screen doesn't always start in the same place. The other routine used is at $BC26, which returns the address in HL of the screen byte which is displayed below the current one addressed by HL. This is needed for the same reason as above.

To get the program going on your machine, type in the Basic loader program and Save, then Run it. If all goes well you should get Ready, and you can now New the program and load or type in a program to use the new commands.

It is interesting to note that there is one built in RSX command—try typing |BASIC.

PCW

★ PUBLISHER: Popular Computing Weekly
★ YEAR: 1984
★ CONFIG: 64K + AMSDOS + BASIC 1.0
★ LANGUAGE:
★ LiCENCE: LISTING
★ AUTHOR: Brian CADGE



★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listings:
» RSX-Define-Place    (Popular  Computing  Weekly)    ENGLISHDATE: 2025-07-20
DL: 59
TYPE: ZIP
SiZE: 4Ko
NOTE: Supplied by hERMOL ; 40 tracks/Extended DSK
.DSK: √

» RSX-Define-Place    (Popular  Computing  Weekly)    LISTING    ENGLISHDATE: 2025-06-24
DL: 83
TYPE: PDF
SiZE: 2058Ko
NOTE: Supplied by archive.org ; 3 pages/PDFlib v1.6

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

Lien(s):
» Applications » RSX Screenswap (Schneider Aktiv)
» Applications » RSX-Tricks Screen/mode (Schneider CPC-Welt)
» Applications » RSX Controladores de Modo 3 (Amstrad User)
» Applications » Metallic-RSX (CPC Amstrad International)
» Applications » RSX Typo
» Applications » RSX FQuader (CPC Magazin)
Je participe au site:
» 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 078 millisecondes et consultée 3744 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.