alexh wrote: Tue Nov 24, 2026 8:28 am
I read that "SuperVidel" implements "Shadow ST-RAM". It simultaneously writes to ST-RAM and shadow ST RAM (16 MB in its 0xA0xxxxxx address space) so "high speed ST RAM" reads can be achieved by adding 0xA0000000 to your pointers. Obviously it is not DMA capable so any manipulation of ST-RAM with DMA capable peripherals (e.g. blitter) will not be mirrored but still interesting feature. I wonder how practical it is?
Basically it's a huge RAM cache. It's possible, but it breaks a lot of stuff as well.
Anders tried shadow ST-RAM on a TF536 as an experiment, and the problem was always DMA. Anything that writes to ST-RAM without going through the CPU never updates the shadow copy, so the copy goes stale. In the end only the onboard IDE could be used, because IDE is driven by the CPU, so every write goes through the accelerator.
On the Falcon it would be the same story. The floppy, SCSI, sound recording and the blitter all write to ST-RAM directly, so none of them would be mirrored. The only real fix is to snoop the bus while DMA is running and update the shadow copy from that. Nobody could decide whether that was possible or reliable, so the work never got done. A logic analyser on the 030 socket during a SCSI read would answer it one way or the other.
I did something similar on the ST536 by moving the low RAM system variables into TT-RAM. That works fine because only the CPU ever writes to them.
I'd also question how much it would actually be needed. On the ST it gives huge gains because the graphics live in ST-RAM. But if programs run in TT-RAM and the graphics live in the board's own memory, there isn't much left using ST-RAM in the first place. The only real exception is older programs without the TT-RAM flags set in their header, which still load into ST-RAM, and those are also the ones most likely to be using DMA, which is exactly where shadow RAM breaks.