Template
- DATA and RODATA segments added to computer.cfg - RAM memory configuration now starts at to not overwrite the cpu stack - hardware.inc added to handle hardware related constants - constants removed from via.s - constants removed from serial.s - serial_delay from serial.s is now dynamic, dependant on CPU_HZ and baud rate - serial_baud_* functions added to setup 19200 and 9600 baud - mem_copy.s added. data copy functions are to be implemented here - copy_data (mem_copy.s) implemented to copy the DATA segment from ROM to RAM - propper system setup in main.s - Makefile now generates a .map file with the memory map information
16 lines
604 B
INI
16 lines
604 B
INI
# Physical Memory configuration
|
|
MEMORY {
|
|
ZP: start = $00, size = $0100, type = rw, file = "";
|
|
RAM: start = $0200, size = $7d00, type = rw, file = "";
|
|
PRG: start = $C000, size = $4000, type = ro, file = %O, fill = yes, fillval = $00;
|
|
}
|
|
|
|
# In-Code Segment separators
|
|
SEGMENTS {
|
|
ZEROPAGE: load = ZP, type = zp;
|
|
BSS: load = RAM, type = bss;
|
|
CODE: load = PRG, type = ro, start = $C000;
|
|
DATA: load = PRG, run = RAM, type = rw, define = yes;
|
|
RODATA: load = PRG, type = ro;
|
|
VECTORS: load = PRG, type = ro, start = $FFFA;
|
|
} |