Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v3:memory_model [2022/12/29 18:50] – [Commodore-64] neils | v3:memory_model [2024/07/03 19:52] (current) – [Zeropage] neils | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Memory model ====== | ====== Memory model ====== | ||
- | The following addresses are subject to change, even between minor versions. | + | The following addresses are subject to change. Visit this page for updates. |
===== Zeropage ===== | ===== Zeropage ===== | ||
- | ==== Commodore machines ==== | + | [pet] [vic20] [c64] [c16] [cplus4] [c128] [m65] |
- | | $02-$14 | + | | $02-$14 |
- | | $15-$3A | + | | $15-$3A |
- | | $3B-$69 | + | | $3B-$69 |
- | ==== Commander X16 ==== | + | [x16] |
- | | $22-$34 | + | | $22-$34 |
- | | $35-$7F | + | | $35-$7F |
- | | $A9-$CE | + | | $A9-$CE |
===== Other reserved areas ===== | ===== Other reserved areas ===== | ||
- | | $033C-$03FC | 192 bytes | Temporary storage during string operations | + | [vic20] [c64] [c16] [cplus4] [c128] |
+ | |||
+ | | $033C-$03FB | 192 bytes | Temporary storage during string operations | ||
+ | |||
+ | [pet] | ||
+ | |||
+ | | $033A-$03F9 | ||
+ | |||
+ | [x16] | ||
+ | | $0400-$04BF | 192 bytes | Temporary storage during string operations | ||
===== Program code and data ===== | ===== Program code and data ===== | ||
Line 74: | Line 83: | ||
| ???? - $7EFF | | Function stack (growing downwards) | | | ???? - $7EFF | | Function stack (growing downwards) | | ||
| $7F00 - $7FFF | | String stack | | | $7F00 - $7FFF | | String stack | | ||
+ | |||
+ | ==== Commodore-128 ==== | ||
+ | |||
+ | | $1001 - $100C | 12 bytes | BASIC Loader (can be disabled) | | ||
+ | | $100D - ???? | | Program code | | ||
+ | | ???? - ???? | | Library | | ||
+ | | ???? - ???? | | Variables | | ||
+ | | ???? - $BEFF | | Function stack (growing downwards) | | ||
+ | | $BF00 - $BFFF | 256 bytes | String stack | | ||
+ | ==== Commander X16 ==== | ||
+ | |||
+ | | ???? - $06FF | | Function stack (growing downwards) | | ||
+ | | $0700 - $07FF | 256 bytes | String stack | | ||
+ | | $0801 - $080C | 12 bytes | BASIC Loader (can be disabled) | | ||
+ | | $080D - ???? | | Program code | | ||
+ | | ???? - ???? | | Library | | ||
+ | | ???? - ???? | | Variables | |