diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 8 insertions, 17 deletions
@@ -338,17 +338,10 @@ cartbank2.cfg: cartbank2.cfg.old cartbank2.cfg.new cartbank2.sh romable_taimain.raw: cartbank2.cfg $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC) $(TAIMAIN_HDRS) $(BIGNUM_SRC) $(BIGNUM_HDRS) $(TAIMAIN_LIBS) crt0_cart.s messages.c $(CC) --config cartbank2.cfg -m taipan.map -t atari -T -I. -L. -DFONT_ADDR=0x9c00 --start-addr 0x400 -Wl -D__STACKSIZE__=0x200 -O -Wl -D__SYSTEM_CHECK__=1 -Wl -D__AUTOSTART__=1 -Wl -D__EXEHDR__=1 -DCART_TARGET=1 --asm-define CART_TARGET=1 -DBIGNUM=BIGFLOAT -o romable_taimain.raw $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC) $(BIGNUM_SRC) $(TAIMAIN_LIBS) crt0_cart.s -# 256 bytes of $ff filler, for the last page of each code bank. Wasting -# this little bit of space simplifies the copying code in bank7.s (no -# partial last page to copy), and guarantees I don't accidentally end -# up with a 0 in the "cart present" byte of the cart trailer. -fill256: - $(PERLF) -Mbytes -e 'print chr(0xff) x 256' > fill256 - # 8192 bytes of $ff filler, for unused banks. Possibly these will be # used for something like an interactive game manual/tutorial. -blankbank: - $(PERLF) -Mbytes -e 'print chr(0xff) x 8192' > blankbank +#blankbank: +# $(PERLF) -Mbytes -e 'print chr(0xff) x 8192' > blankbank splitrom.raw.0: splitrom.raw.2 @@ -358,17 +351,15 @@ splitrom.raw.1: splitrom.raw.2 # with 3 chunks, the cart won't work correctly, so stop the build here # in that case. splitrom.raw.2: romable_taimain.raw - split -b 7936 -a 1 -d romable_taimain.raw splitrom.raw. + split -b 8192 -a 1 -d romable_taimain.raw splitrom.raw. [ -e splitrom.raw.3 ] && echo "*** romable_taimain.raw too big" && rm -f splitrom.raw.* && exit 1 || exit 0 -bank0: splitrom.raw.0 fill256 - cat splitrom.raw.0 fill256 > bank0 - -bank1: splitrom.raw.1 fill256 - cat splitrom.raw.1 fill256 > bank1 +bank0: splitrom.raw.0 checkbank0.pl + cat splitrom.raw.0 > bank0 + $(PERLF) checkbank0.pl bank0 -#bank2: splitrom.raw.2 fill256 -# cl65 -l bank2.lst -m bank2.map -t none -o bank2 bank2.s +bank1: splitrom.raw.1 + cat splitrom.raw.1 > bank1 bank2: rodata.8000 bank2.s taifont romable_taimain.raw $(CC) -l bank2.lst -m bank2.map -t none -o bank2 bank2.s |