Skip to content

Memory Layout

Sam Hocevar edited this page Dec 13, 2017 · 3 revisions

Some notes about the memory layout.

0x0000β€”0x2000: graphics

0x1000β€”0x3000: map

0x3000β€”0x3100: gfx props

0x3100β€”0x3200: song

0x3200β€”0x4300: sfx

0x4300β€”0x5e00: user data

0x5e00β€”0x5f00: persistent storage

0x5f00β€”0x5f40: draw state

  • 0x5f00β€”0x5f10: draw palette
  • 0x5f10β€”0x5f20: screen palette
  • 0x5f20β€”0x5f24: clipping region
  • 0x5f24: ?
  • 0x5f25: pen color
  • 0x5f26: cursor X
  • 0x5f27: cursor Y
  • 0x5f28β€”0x5f2c: camera
  • 0x5f2c: ?
  • 0x5f2d: mouse support
  • 0x5f31β€”0x5f34: fill pattern

0x5f40β€”0x5f80: hardware state

0x5f80β€”0x6000: GPIO pins

0x6000β€”0x8000: screen

Clone this wiki locally