lsnes memory map

This is list of mappings used by memory manipulation functions.
Not all mappings are active at once. All addresses are in hexadecimal
Codes used in notes:
ShorthandMeaning
-Always present
RTCOnly present on cartridges with an RTC chip
DSPOnly present on cartridges with a DSP chip
BSXBS-X only
STSufami Turbo only
SGBSuper Game Boy only
CARTPresence depends on the cartridge
V10Only present on lsnes rr1-Δ10 and newer
V10.1Only present on lsnes rr1-Δ10ε1 and newer

SNES memory map

Start AddressEnd AddressSizeDescriptionNotes
0000 00000000 FFFF64kBAudio RAM-
0001 00000001 FFFF64kBVideo RAM-
0002 00000002 021F544BObject Attribute Memory-
0002 10000002 11FF512BPalette Memory-
0002 20000002 201320BS-RTC or SPC-7110 Clock MemoryRTC
0002 30000002 3FFF4kBDSP RAMDSP
007E 0000007F FFFF128kBMain RAM-
0100 000001FF FFFF16MBSNES BusV10
1000 0000(varies)(varies)Main cartridge[1] RAM / SRAMCART
2000 0000(varies)(varies)BS-X RAMBSX
Sufami Turbo Slot A Cartridge RAM / SRAMST,CART
DMG cartridge RAM / SRAMSGB,CART
3000 0000(varies)(varies)BS-X PRAMBSX
Sufami Turbo Slot B Cartridge RAM / SRAMST,CART
8000 0000(varies)(varies)Main cartridge[1] ROM-
9000 0000(varies)(varies)BS-X Flash ROMBSX
Sufami Turbo Slot A Cartridge ROMST
DMG Cartridge ROMSGB
A000 0000(varies)(varies)Sufami Turbo Slot B Cartridge ROMST
F000 0000F000 FFFF64kBDSP program ROMDSP
F001 0000F001 0FFF4kBDSP data ROMDSP
1 0000 00001 000F FFFF16MBTable of area pointers and sizesV10.1
1 0100 0000(varies)(varies)CPU internal stateV10.1
1 0200 0000(varies)(varies)PPU internal stateV10.1
1 0300 0000(varies)(varies)SMP internal stateV10.1
1 0400 0000(varies)(varies)DSP internal stateV10.1

DMG/CGB memory map:

Start AddressEnd AddressSizeDescriptionNotes
0000 0000(varies)(varies)Main RAM-
0001 0000(varies)(varies)Video RAM-
0001 8000(varies)(varies)I/O RAM-
0002 0000(varies)(varies)Save RAMCART
8000 0000(varies)(varies)Main cartridge ROM-

MMIO area (rr1-Δ14 and newer):

AddressTypeDescription
FFFF FFFF 0000 0000Unsigned QwordFrame counter
FFFF FFFF 0000 0008Unsigned QwordMovie length
FFFF FFFF 0000 0010Unsigned QwordLag counter
FFFF FFFF 0000 0018Unsigned QwordRerecord counter
[1] In case of BS-X, Sufami Turbo or Super Game Boy, the main cartridge is the adapter cartridge, not the actual game cartridge!

EmulatorResources/Lsnes/MemoryMap last edited by Ilari on 9/9/2012 4:38 PM
Page History Latest diff List referrers View Source