News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

cpctelera : startaddress is 0x0100 ?

Started by funkheld, 20:03, 20 November 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

funkheld



Hi good afternoon.


im wondering that the starting address at cpctelera can be so low. Why ?
normally you can only start at 0x4000.


greeting


spritedemo:
------------------------------------
PROJNAME   := sprites
Z80CODELOC := 0x0100
------------------------------------

ervin

Most cpctelera programs disable the firmware. Cpctelera has a command to do this. Disabling the firmware allows us to use the ram before 0x4000.

funkheld

which system commands can then no longer be used?




greeting

awergh

#3
Quote from: funkheld on 23:37, 20 November 20
which system commands can then no longer be used?
Have a look at the cpctelera documentation.
https://lronaldo.github.io/cpctelera/files/readme-txt.html


For example in cpct_drawStringM0 provides a warning:
Do not put this function's code below 0x4000 in memory.  In order to read characters from ROM, this function enables Lower ROM (which is located 0x0000-0x3FFF), so CPU would read code from ROM instead of RAM in first bank, effectively shadowing this piece of code.  This would lead to undefined results (typically program would hang or crash).

Powered by SMFPacks Menu Editor Mod