mirror of
https://github.com/mi57730/a2d.git
synced 2024-10-01 14:55:28 +00:00
DeskTop: Add dedicated linker config file; for now just a copy of default apple2-asm.cfg
This commit is contained in:
parent
f20bcf6205
commit
696de2e669
@ -1,7 +1,7 @@
|
||||
|
||||
CC65 = ~/dev/cc65/bin
|
||||
CAFLAGS = --target apple2enh --list-bytes 0
|
||||
CCFLAGS = --config apple2-asm.cfg
|
||||
CCFLAGS = --config asm.cfg
|
||||
|
||||
TARGETS = s0_loader.built s123_aux.built s4_main1.built
|
||||
|
||||
@ -17,7 +17,7 @@ clean:
|
||||
%.o: %.s $(HEADERS)
|
||||
$(CC65)/ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
|
||||
|
||||
%.built: %.o
|
||||
%.built: %.o asm.cfg
|
||||
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
|
||||
|
||||
check:
|
||||
|
19
desktop/asm.cfg
Normal file
19
desktop/asm.cfg
Normal file
@ -0,0 +1,19 @@
|
||||
# Configuration for assembler programs which don't need a special setup
|
||||
|
||||
FEATURES {
|
||||
STARTADDRESS: default = $0803;
|
||||
}
|
||||
MEMORY {
|
||||
ZP: file = "", start = $0000, size = $00FF;
|
||||
HEADER: file = %O, start = %S - 4, size = $0004;
|
||||
MAIN: file = %O, define = yes, start = %S, size = $C000 - %S;
|
||||
BSS: file = "", start = __MAIN_LAST__, size = $C000 - __MAIN_LAST__;
|
||||
}
|
||||
SEGMENTS {
|
||||
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
||||
EXEHDR: load = HEADER, type = ro, optional = yes;
|
||||
CODE: load = MAIN, type = rw;
|
||||
RODATA: load = MAIN, type = ro, optional = yes;
|
||||
DATA: load = MAIN, type = rw, optional = yes;
|
||||
BSS: load = BSS, type = bss, optional = yes, define = yes;
|
||||
}
|
Loading…
Reference in New Issue
Block a user