From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Sega Master System" |
|---|
| claim | "The standard Sega mapper registers are written at Z80 addresses 0xFFFC (control), 0xFFFD, 0xFFFE and 0xFFFF (16 KiB ROM page of slot 0, 1, 2); the writes also reach the work RAM mirror." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Sega Master System" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "sms_sega_mapper" |
|---|
| size | 4 |
|---|
| address | | kind | "hardware" |
|---|
| value | "0xFFFC" |
|---|
|
|---|
| fields | | offset | "0x0" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "MAPPER_CONTROL" |
|---|
| bits | | bit | "0-1" |
|---|
| name | "bank_shift" |
|---|
| notes | "stored, unused in Mesen2" |
|---|
|
|
| bit | "3" |
|---|
| name | "cart_ram_at_8000" |
|---|
|
| bit | "4" |
|---|
| name | "cart_ram_at_C000" |
|---|
|
| bit | "7" |
|---|
| name | "rom_write_enable" |
|---|
|
|
|---|
|
| offset | "0x1" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "MAPPER_SLOT0_PAGE" |
|---|
| notes | "maps 0x0000-0x3FFF (first 1 KiB fixed to page 0)" |
|---|
|
| offset | "0x2" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "MAPPER_SLOT1_PAGE" |
|---|
| notes | "maps 0x4000-0x7FFF" |
|---|
|
| offset | "0x3" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "MAPPER_SLOT2_PAGE" |
|---|
| notes | "maps 0x8000-0xBFFF unless cart RAM is enabled" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "WriteRegister cases 0xFFFC-0xFFFF and RefreshMappings" |
|---|
| repo | "https://github.com/SourMesen/Mesen2" |
|---|
| commit | "b9fa69ddc6d0a331fb103fdb5eef6904305703c2" |
|---|
| path | "Core/SMS/Carts/SmsSegaCart.h" |
|---|
|
| type | "source" |
|---|
| detail | "write_mapper_sega calls mapper_16k_w(address & 3, data) for address >= 0xFFFC" |
|---|
| repo | "https://github.com/ekeeke/Genesis-Plus-GX" |
|---|
| commit | "49c584764893b0505ac7f768a754f97330fa4392" |
|---|
| path | "core/cart_hw/sms_cart.c" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Sega mapper registers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T19:11:46.644Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:38:07.645Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched Mesen2 Core/SMS/Carts/SmsSegaCart.h at b9fa69d: registers mapped 0xFFFC-0xFFFF, cases 0xFFFC (control), 0xFFFD/0xFFFE/0xFFFF store _prgBanks[0..2]; four bytes, size 4." |
|---|
|
|
|---|