News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

demo-upper-rom for the cpc6128

Started by cpcuser, 08:58, 29 October 16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cpcuser


How to create pliece a demo-upper-rom for
the cpc6128 and start it?




thank you.
greeting

Ast

#1

Hi,


If you wanna do an upper rom demo, your demo will start at #c000 and finish at #ffff....
It's impossible to do a 100% Rom demo, so you will use, the ram too.
Why ? Because you can't change any data on Rom. Rom is only "Read Only Memory", so all counters and all automodifications code will be do into Ram. That's the only way.


Using rom quick access :



di
ld bc,#7F80+%0110 ; connect upper rom+select mode 2
out (c),c
ld bc,#df00+rom number  ; (0-#1f) if rom max is 31
out (c),c                             ; then select the rom you want to use....
....                                      ; here you re connected into the rom selected!





I hope my words could help you in your demoway ! bye...
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

arnoldemu

Quote from: cpcuser on 08:58, 29 October 16
How to create pliece a demo-upper-rom for
the cpc6128 and start it?




thank you.
greeting
Example here:

http://www.cpctech.org.uk/docs/manual/s158se09.pdf

page 9.3.

Use "EMS_ENTRY" to poke basic and move it I think.
OR, set HL,DE and set lower memory address to do the same.

This example is more complex, but shows how to reserve space for rom (in upper ram, but you can also reserve space in lower ram):

http://www.cpctech.org.uk/source/filesys.asm

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

cpcuser

hello,wery  good.


thanks.


greeting

Powered by SMFPacks Menu Editor Mod