bank_offsets

Function bank_offsets 

Source
pub(crate) fn bank_offsets(banks: usize) -> [usize; 8]
Expand description

Where in the ROM (in 8 KB banks) each sixteenth of the 128 ROM pages starts (the reference’s harness.bank_offsets, 6ce348e).

pcetech 3 says only that cards smaller than 1 MB “may be mirrored”. The shapes are MAME’s (bus/pce/pce_slot.cpp rom_map_setup, BSD-3-Clause, copyright Fabio Priuli; ported by the reference, see NOTICE.md; emulator tier): in 128 KB blocks, a 384 KB card is 0 1 0 1 2 2 2 2 (two chips, the conventional split), a 192 KB image 0 1 2 2 0 1 2 2, and anything else maps its blocks in order and fills the rest by repeating the run before (so 768 KB is 0-5 4 5 and a power of two repeats whole). Cards under 128 KB repeat from the start (the harness’s modulo; a choice).