CPCWiki forum

General Category => Amstrad CPC hardware => Topic started by: zhulien on 06:16, 05 June 23

Title: CPC ROM question
Post by: zhulien on 06:16, 05 June 23
Hi,

In a CPC,  are the external upper ROMs treated as ROM by the CPC, or is it only treated as ROM because it is ROM?  i.e. if it were changed to RAM, would writes go to it or does the GA prevent writes going to the ROMs?
Title: Re: CPC ROM question
Post by: eto on 12:13, 05 June 23
Afaik the ROMEN signal will not be low during a write, so it will still go to RAM. 
Title: Re: CPC ROM question
Post by: andycadley on 13:01, 05 June 23
The design of the CPC also relies on write-through being a thing. I.e. when ROM is paged in, it is expected (and required) that writes will still go to the underlying RAM that is present. Committing those writes to ROM instead of or as well as RAM would probably have unintended consequences.
Title: Re: CPC ROM question
Post by: GUNHED on 22:58, 05 June 23
Quote from: zhulien on 06:16, 05 June 23Hi,

In a CPC,  are the external upper ROMs treated as ROM by the CPC, or is it only treated as ROM because it is ROM?  i.e. if it were changed to RAM, would writes go to it or does the GA prevent writes going to the ROMs?
It purely depends on the kind of expansion you use!
- EPROM will always stay ROM
- Flash can be rewritten, but won't work like RAM (because complete block must be written before they can be read)
- And the static RAM of the ROM-RAM-Box (RRB) and the Symbiface II can indeed be used as RAM. However, when writing to the SRAM of the RRB then the SRAM and the screen RAM will be written with the same value. In case of the SF2 the simulated ROM can be used as expansion RAM too, but nobody does (officially ;-))
Title: Re: CPC ROM question
Post by: zhulien on 23:40, 05 June 23
Quote from: andycadley on 13:01, 05 June 23The design of the CPC also relies on write-through being a thing. I.e. when ROM is paged in, it is expected (and required) that writes will still go to the underlying RAM that is present. Committing those writes to ROM instead of or as well as RAM would probably have unintended consequences.
I actually take advantage of that with the SUPER ROM, |martha shows an image from ROM to screen RAM behind the ROM.
Powered by SMFPacks Menu Editor Mod