mirror of
https://github.com/SplatooD/splatood.git
synced 2026-04-24 15:27:01 -05:00
updated to cc65 V2.18.
This commit is contained in:
parent
a6c4599746
commit
9c5ce53a4c
10
Makefile
10
Makefile
|
|
@ -1,8 +1,8 @@
|
|||
ROM_CONFIG = nrom.cfg
|
||||
CRT_OBJ = crt0.o
|
||||
GAME_OBJ = game.o
|
||||
RUNTIME_LIB = runtime.lib
|
||||
|
||||
RUNTIME_LIB = nes.lib
|
||||
CC65_HOME = /usr/share/cc65
|
||||
EXECUTABLE = splatood.nes
|
||||
|
||||
ASM = ca65
|
||||
|
|
@ -18,10 +18,10 @@ crt0.o: *.s *.chr
|
|||
$(CC) -Oi $< --add-source
|
||||
|
||||
%.o: %.s
|
||||
$(ASM) $<
|
||||
CC65_HOME=$(CC65_HOME) $(ASM) $<
|
||||
|
||||
$(EXECUTABLE): $(GAME_OBJ) $(ROM_CONFIG) $(CRT_OBJ) $(RUNTIME_LIB)
|
||||
$(LD) -C $(ROM_CONFIG) -o $(EXECUTABLE) $(CRT_OBJ) $(GAME_OBJ) $(RUNTIME_LIB)
|
||||
$(EXECUTABLE): $(GAME_OBJ) $(ROM_CONFIG) $(CRT_OBJ)
|
||||
CC65_HOME=$(CC65_HOME) $(LD) -C $(ROM_CONFIG) -o $(EXECUTABLE) $(CRT_OBJ) $(GAME_OBJ) $(RUNTIME_LIB)
|
||||
|
||||
clean:
|
||||
rm -f game.s *.o *.nes
|
||||
|
|
|
|||
30
nrom.cfg
30
nrom.cfg
|
|
@ -2,9 +2,9 @@ MEMORY {
|
|||
|
||||
ZP: start = $0000, size = $0100, type = rw, define = yes;
|
||||
HEADER: start = $0000, size = $0010, file = %O ,fill = yes;
|
||||
PRG: start = $8000, size = $7fc0, file = %O ,fill = yes, define = yes;
|
||||
DMC: start = $ffc0, size = $003a, file = %O, fill = yes;
|
||||
VECTORS: start = $fffa, size = $0006, file = %O, fill = yes;
|
||||
PRG: start = $8000, size = $7fc0, file = %O ,fill = yes, define = yes;
|
||||
DMC: start = $ffc0, size = $003a, file = %O, fill = yes;
|
||||
VECTORS: start = $fffa, size = $0006, file = %O, fill = yes;
|
||||
CHR: start = $0000, size = $2000, file = %O, fill = yes;
|
||||
RAM: start = $0300, size = $0500, define = yes;
|
||||
|
||||
|
|
@ -16,14 +16,14 @@ SEGMENTS {
|
|||
|
||||
HEADER: load = HEADER, type = ro;
|
||||
STARTUP: load = PRG, type = ro, define = yes;
|
||||
LOWCODE: load = PRG, type = ro, optional = yes;
|
||||
INIT: load = PRG, type = ro, define = yes, optional = yes;
|
||||
LOWCODE: load = PRG, type = ro, optional = yes;
|
||||
ONCE: load = PRG, type = ro, optional = yes;
|
||||
CODE: load = PRG, type = ro, define = yes;
|
||||
RODATA: load = PRG, type = ro, define = yes;
|
||||
DATA: load = PRG, run = RAM, type = rw, define = yes;
|
||||
VECTORS: load = VECTORS, type = rw;
|
||||
SAMPLES: load = DMC, type = rw;
|
||||
CHARS: load = CHR, type = rw;
|
||||
VECTORS: load = VECTORS, type = ro;
|
||||
SAMPLES: load = DMC, type = ro;
|
||||
CHARS: load = CHR, type = ro;
|
||||
BSS: load = RAM, type = bss, define = yes;
|
||||
HEAP: load = RAM, type = bss, optional = yes;
|
||||
ZEROPAGE: load = ZP, type = zp;
|
||||
|
|
@ -32,7 +32,7 @@ SEGMENTS {
|
|||
|
||||
FEATURES {
|
||||
|
||||
CONDES: segment = INIT,
|
||||
CONDES: segment = ONCE,
|
||||
type = constructor,
|
||||
label = __CONSTRUCTOR_TABLE__,
|
||||
count = __CONSTRUCTOR_COUNT__;
|
||||
|
|
@ -49,11 +49,11 @@ FEATURES {
|
|||
|
||||
SYMBOLS {
|
||||
|
||||
__STACKSIZE__ = $0500; # 5 pages stack
|
||||
|
||||
NES_MAPPER = 0; # mapper number
|
||||
NES_PRG_BANKS = 2; # number of 16K PRG banks, change to 2 for NROM256
|
||||
NES_CHR_BANKS = 1; # number of 8K CHR banks
|
||||
NES_MIRRORING = 0; # 0 horizontal, 1 vertical, 8 four screen
|
||||
__STACKSIZE__: type = weak, value = $0500; # 5 pages stack
|
||||
|
||||
NES_MAPPER: type = weak, value = 0; # mapper number
|
||||
NES_PRG_BANKS: type = weak, value = 2; # number of 16K PRG banks, change to 2 for NROM256
|
||||
NES_CHR_BANKS: type = weak, value = 1; # number of 8K CHR banks
|
||||
NES_MIRRORING: type = weak, value = 0; # 0 horizontal, 1 vertical, 8 four screen
|
||||
|
||||
}
|
||||
|
|
|
|||
BIN
runtime.lib
BIN
runtime.lib
Binary file not shown.
Loading…
Reference in New Issue
Block a user