Skip to content

Rom Paging

Julian Brown edited this page Jun 28, 2024 · 2 revisions

ROM Paging

The ROM on the main board provides 512KB, this can be mapped into the memory paging or associated with the regular ROM addresses.

The mechanism for ROM paging has not been defined. Until the paging mechanism is defined the lowest 16KB of the ROM is mapped to $8000 in the standard RAM/ROM memory scheme.

Bootstrap ROM page

On cold boot the R0 rom space is allocated to the last 8KB of the ROM. This ROM page should only be used for bootstrapping the system and the code contained is responsible for making sure the system is in a viable state to begin normal operation. The last ROM page should not be used for any other purposes after normal operation starts.

ROM Programming

The ROM can be written in 256 byte blocks, this can be performed live, in-system. The limitation on this is that the ROM cannot be utilised for a read while the 256 block is being written. To prevent read operations the CPU needs to be paused and interrupts masked off, the copy from RAM to ROM must then be performed by the SAM.

The last 8K page of the ROM should not be written to from in-system as this can render the computer inoperable after a cold boot. It is recommended to only program the last 8K page using an external programmer with a proven bootstrap capable image.

Clone this wiki locally