Template
Overhaul the 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
This commit is contained in:
1 parent
a8caf9db75
commit
3801459e1e
8 files changed
+203
-74
No files matched your search
+3
-1
@@ -1,7 +1,7 @@
|
||||
# Physical Memory configuration
|
||||
MEMORY {
|
||||
ZP: start = $00, size = $0100, type = rw, file = "";
|
||||
RAM: start = $0100, size = $7e00, type = rw, file = "";
|
||||
RAM: start = $0200, size = $7d00, type = rw, file = "";
|
||||
PRG: start = $C000, size = $4000, type = ro, file = %O, fill = yes, fillval = $00;
|
||||
}
|
||||
|
||||
@@ -10,5 +10,7 @@ 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;
|
||||
}
|
||||
Reference in new issue
Block a user