-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathrom.cfg
More file actions
27 lines (25 loc) · 1.36 KB
/
Copy pathrom.cfg
File metadata and controls
27 lines (25 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Memory map for buri 6502 computer
MEMORY
{
ZEROPAGE: start=$0000, size=$0100, define=yes; # Zero page
STACK: start=$0100, size=$0100, define=yes; # Stack page
OSDATA: start=$0200, size=$0100, define=yes; # OS workspace
OSCSTACK: start=$0300, size=$0100, define=yes; # OS C call stack
USR: start=$0400, size=$7C00, define=yes; # User memory
IO: start=$DF80, size=$0080, define=yes; # 8x16 byte IO pages
ROM: start=$E000, size=$2000, file="%O"; # 8K of ROM
}
# Segments within the EEPROM
SEGMENTS
{
# Initialised segments
DATA: load=ROM, run=OSDATA, type=rw, define=yes; # OS read/write data
RODATA: load=ROM, type=ro; # Read-only data segment
CODE: load=ROM, type=ro; # ROM code
VECTORS: load=ROM, type=ro, start=$FFE0; # Processor "native" vector table
VECTORS_E: load=ROM, type=ro, start=$FFF0; # Processor "emulation" vector table
# Uninitialised segments
BSS: load=OSDATA, type=bss; # OS temp storage
ZEROPAGE: load=ZEROPAGE, type=zp; # Zero-page
OSZP: load=ZEROPAGE, type=zp, start=$D0; # OS-section of zero page
}