Skip to content

Memory Paging

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

Memory Paging

As an extension to the original SAM capabilities the SAMx includes paging of memory to extend the default 64KB up to a possible maximum of 16MB RAM and 512KB ROM.

The page size has not been finalised but will be either 2K, 4K or 8K.

Memory Map

Paging Registers

$FF90 allows the selection of the page block id. Id 0 denotes $0000 and increments with each block.

2K pages equate to a $0800 increment for each block id. 4K pages equate to a $1000 increment for each block. 8K equates to a $2000 increment.

$FF91 defines the upper byte of the page address within the 16MB address space. The number of bits used depends on the page size, excess bits are ignored. $FF92 defines the lower byte of the page address within the 16MB address space.

The page id address is only asserted when the lower byte is updated.

Tasks

The paging system includes multiple tasks, each one associated with its own set of page maps.

The task can be switched by writing to $FFA0

Clone this wiki locally