News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Axelay

If I wanted to make a ROM program...

Started by Axelay, 12:24, 13 August 12

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Axelay

...where might I find some information on how to do that?
Is the "ROM" image any kind of special format?
How do you get it to be initialized by the firmware so it can be run with an RSX?

ralferoo

#1
Take a look at http://ranulf.net/mytestrom.asm . It's the expansion ROM that does bootstrapping of SREC programs over a virtual serial port on my FPGA board, so don't expect the hardware IO to work on a normal CPC... :)

I think appendix 12, 13 or 14 of the firmware manual covers RSX and ROMs in more detail, but I can't check because my copy is at home.

EDIT: The key point is the RSXs are listed in the table at the beginning, the jump table matches the list of names. The first entry is the initialisation code, and the corresponding RSX name is used as the ROM name and has a space in it so it can't be used from BASIC.

arnoldemu

Quote from: Axelay on 12:24, 13 August 12
...where might I find some information on how to do that?
Is the "ROM" image any kind of special format?
How do you get it to be initialized by the firmware so it can be run with an RSX?
rom based game?

ok, rom for cpc and cart game have different setups.

a rom for cpc requires a special header.

a cart for plus, starts executing at 0, and you can do what you want in it effectively.

ralferoo's rom shows the details.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Axelay

Quote from: ralferoo on 12:33, 13 August 12
Take a look at http://ranulf.net/mytestrom.asm . It's the expansion ROM that does bootstrapping of SREC programs over a virtual serial port on my FPGA board, so don't expect the hardware IO to work on a normal CPC... :)

I think appendix 12, 13 or 14 of the firmware manual covers RSX and ROMs in more detail, but I can't check because my copy is at home.

EDIT: The key point is the RSXs are listed in the table at the beginning, the jump table matches the list of names. The first entry is the initialisation code, and the corresponding RSX name is used as the ROM name and has a space in it so it can't be used from BASIC.


Thanks ralferoo, seems pretty straight forward then.  I did find a chapter from one of the manuals on the wiki that seemed to talk about what you needed to do, but not how exactly.  I'll see if those appendix you mention are on there.


Quote from: arnoldemu on 13:06, 13 August 12
rom based game?

ok, rom for cpc and cart game have different setups.

a rom for cpc requires a special header.

a cart for plus, starts executing at 0, and you can do what you want in it effectively.

ralferoo's rom shows the details.


Nothing particular in mind, but yes, a CPC game perhaps.  I guess there's a few megaflash out there that might have a few spare slots, so I was just wondering if it might be interesting and not too difficult to do a ROM version of a future release, or in the event of a mulitloading game, perhaps a full or partial 'install' option or something.  But that's all just at the 'what if' stage right now.  On the flip side, multiple versions make bug testing a pain, so I don't really know yet, especially if you go and add possible CPCSD support on top!

Powered by SMFPacks Menu Editor Mod