News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_ComSoft6128

Locomotive BASIC - CARTE(MAP) by Christophe Leclercq

Started by ComSoft6128, 16:43, 11 October 22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ComSoft6128

1988 type-in from the French magazine 'AM Mag' which uses an RSX file.

From the magazine (courtesy of CPCRulez):
"During the production of a card game program, what skilled programmer has not come up against the problem posed by the display of said cards, as long as he wishes to adorn them with shimmering colors. The basic solution which consists in superimposing in transparent mode, graphic characters of different colors, penalizes the execution speed too much. The solution: a singular (relocatable) machine-language utility such as this, offering a single RSX extension:

|CARD,X,Y,card number
This instruction displays a map in mode 1, 128 pixels high by 64 wide. The graphic X and Y coordinates determine the position on the screen of the top and left corner of the map. The number of this one must be between 1 and 78 for a screen of 40 characters by 25 and between 1 +256 and 78 +256, for a screen of 32 characters by 32. The 78 cards thus proposed are those of the game tarot cards (these include the normal 52-card deck).
Before display, the program checks the validity of the parameters and does nothing if one of them is incorrect. Otherwise, it displays the requested card at the desired position with an ink frame 0. Explanations and examples relating to the implementation of this instruction are included in the basic demonstration program.

Backup
Enter the hexadecimal codes of the second listing using the AMSAISIE program (refer to its user manual). Specify 5A65 as the start address and save the machine language with the "S" option under the name "CARD". If you do not want to enter all the codes at once, break up your work by creating several files (CART1, CART2, etc.). These will later have to be loaded one after the other after a
MEMORY &5A64 and thus saved in a single file:

SAVE"CARD",b,&5A65,& 25F7
NB: in the case of a K7 backup, this binary program must be saved "following" the basic demonstration program."



Links:
https://cpcrulez.fr/applications_util-carte__AMMAG.htm
https://www.cpc-power.com/index.php?page=detail&num=5497
https://www.cpcwiki.eu/index.php/Amstrad_Magazine

Not emulated - original hardware and software.
Please note that  the aspect ratio for this YouTube video is 16:9 but the CPC monitor
has an aspect ratio of 4:3 so you may wish to adjust your viewing device accordingly.

Powered by SMFPacks Menu Editor Mod