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
@@ -1,6 +1,8 @@
|
||||
OUTPUT := example.bin
|
||||
TARGET_CPU := 65c02
|
||||
|
||||
MEM_MAP_FILE := $(OUTPUT:.bin=.map)
|
||||
|
||||
# Tool list
|
||||
CC65 := cc65
|
||||
CA65 := ca65
|
||||
@@ -20,7 +22,7 @@ all: $(OUTPUT)
|
||||
|
||||
$(OUTPUT): $(C_SOURCES) $(ASM_SOURCES)
|
||||
@mkdir -p $(dir $@)
|
||||
$(CL65) -t none --cpu $(TARGET_CPU) -C computer.cfg -O -o $@ $^
|
||||
$(CL65) -t none --cpu $(TARGET_CPU) -C computer.cfg -m $(MEM_MAP_FILE) -O -o $@ $^
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS)
|
||||
|
||||
Reference in new issue
Block a user