Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Memory Layout

Sam Hocevar edited this page Jan 8, 2018 · 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: screen mode
    • 0: ×ば぀128 (standard)
    • 1: ×ば぀128
    • 2: ×ば぀64
    • 3: ×ば぀64
    • 5: mirror X
    • 6: mirror Y
    • 7: mirror X,Y
  • 0x5f2d: mouse support
  • 0x5f31β€”0x5f34: fill pattern

0x5f40β€”0x5f80: hardware state

0x5f80β€”0x6000: GPIO pins

0x6000β€”0x8000: screen

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /