From f417950fe61e814ac19212e7e3fbf44f355e37e6 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 5 Feb 2016 18:19:38 -0500 Subject: abort loading if BASIC or a cart is present --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 90a45ac..02237bc 100644 --- a/Makefile +++ b/Makefile @@ -131,8 +131,8 @@ taipan.atr: all # The game binary is a multi-part binary load file. This rule # depends on all the pieces, and just concatenates them. -$(XEX): taimain.xex taifont.xex newtitle.xex comptitle.xex - perl multixex.pl comptitle.xex newtitle.xex taifont.xex taimain.xex > $(XEX) +$(XEX): checkmem.xex taimain.xex taifont.xex newtitle.xex comptitle.xex + perl multixex.pl checkmem.xex comptitle.xex newtitle.xex taifont.xex taimain.xex > $(XEX) perl size.pl $(TAIMAIN_ADDR) $(STACK_SIZE) # Bitmap data for the title screen, 256x184 = 47104 pixels, 8 bits @@ -152,6 +152,13 @@ comptitle.xex: titledata.dat titlecomp.pl comptitle.s.in perl titlecomp.pl 133 < titledata.dat cl65 -l comptitle.lst -o comptitle.xex -t none --asm-define destination=$(TITLE_DATA_ADDR) comptitle.s +# tiny 1-sector memory checker, aborts the laod if a cart is present. +checkmem.xex: cartmsg.dat checkmem.s + cl65 -o checkmem.xex -t none checkmem.s + +cartmsg.dat: cartmsg.txt text2screen.pl + perl text2screen.pl cartmsg.txt > cartmsg.dat + # Init segment that loads after the title screen data. It sets up # a custom display list and sets the GTIA for narrow playfield, # then waits for a keypress. Afterwards, it restores the OS's @@ -236,7 +243,7 @@ convfont: convfont.c # Obligatory clean and distclean rules. clean: - rm -f *.o *.lst convfont *.xex AUTORUN.SYS taipan.atr ver.dat help.dat tags + rm -f *.o *.lst convfont *.xex AUTORUN.SYS taipan.atr ver.dat help.dat tags cartmsg.dat distclean: clean rm -f *~ core .*.swp 1.* 2.* 1 2 3 map map.* *.map a b c foo bar baz comptitle.s comptitle.dat -- cgit v1.2.3