APPLICATIONSDIVERS ★ BASIC COMMANDS|Popular Computing Weekly) ★

RSX Fade Mix (Popular Computing Weekly)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 ★ 

The machine code program presented here adds two new RSX commands to Basic and is suitable for use on any of the CPCs. The two new commands allow you to 'fadeout' a screen, or 'mix' one screen into another.

Each byte of the 16K screen is randomly replaced with a byte from the stored screen which is to be displayed. The Random Number algorithm used only returns each screen address once in the cycle, so the whole process takes only about two seconds. The result is very effective and can be used in games, video titles, or any other program which needs one screen to be replaced with another.

The first new command is |FADEOUT, which resets each byte of the screen to Ink 0, in a random order, giving the effect of the screen fading out.

The |FADEOUT command can also be followed by a delay value, for example, |FADEOUT, 100 to slow down the process. If no value is given then zero is assumed.

The second new command is |MIXSCN, this takes a screen stored in memory and 'mixes'it onto the display, that is, replacing a byte at a time in a random order, until the full 16K has been replaced. MIXSCN must be followed by the address of the stored screen in memory. As the machine code starts at 40000, the highest position a screen can be loaded into is 23616, so the command here would be |MIXSCN,23616. Once again, the optional delay value can be given, as in |MIXSCN,23616,100.

To load a screen into the lower memory. first save it from the normal display with SAVE "SCREEN",B,49152,16384,0, then to load back in use, MEMORY 23615:LOAD "SCREEN1",23616. Of course, all this would be done from within a Basic program.

To use the program type in the Basic Loader program, save and run it. The program will report if any errors are found in the data statements.

The assembly language listing is included for users with access to assemblers, and to show how the program works. For users with 128K memory, it would obviously be nice to be able to store the screens to be mixed in the second bank of RAM. It would be very easy to convert the program to access the second bank, by adding a few lines before and after Line 670, which is where a byte is loaded from the source screen. The whole listing is fully commented and so should be very easy to follow.

PopularComputingWeekly860313

★ PUBLISHER: Popular Computing Weekly
★ YEAR: 1984
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ AUTHOR: Brian Cadge

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listings:
» RSX-FADE-MIX    LISTING    FRENCHDATE: 2015-11-16
DL: 263
TYPE: text
SiZE: 3Ko
NOTE:

» RSX-Fade  Mix    (Popular  Computing  Weekly)    LISTING    ENGLISHDATE: 2021-02-02
DL: 165
TYPE: PDF
SiZE: 101Ko
NOTE: 1 page/PDFlib v1.6

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

Lien(s):
» Coding Src's » Klammerkontrolleur / DEC$ (CPC Amstrad International)
» Coding Src's » SCRCOPY (CPC Amstrad International)
» Coding Src's » Music by Shabaz Yousaf (Amstrad Computer User)
» Coding Src's » Sound - Reflexion Rag
» Coding Src's » 3D Cube
» Coding Src's » Graphic - Fuzzy (Amstrad Computer User)
Je participe au site:
» Vous avez des infos personnel, des fichiers que nous ne possédons pas concernent ce programme ?
» 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 609 millisecondes et consultée 1785 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.