-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now create Squanchy BASIC and Super Squanchy BASIC for the Color Comp…
…uter 3
- Loading branch information
Showing
4 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
all: calc_org bas13.bin install.asm SQUANCHY.DSK | ||
all: calc_org sb.bin ssb.bin install.asm SQUANCHY.DSK | ||
|
||
calc_org: calc_org.c | ||
cc -Wall -Werror $^ -o $@ | ||
|
||
bas13.bin: equates.asm bas.asm calc_org bas13.bin.sym | ||
sb.bin: equates.asm bas.asm calc_org | ||
# Determine length of ROM | ||
lwasm -D BASIC_START=0 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym | ||
# Assemble again with perfect offset | ||
lwasm -D BASIC_START=`./calc_org bas13.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym | ||
lwasm -D BASIC_START=`./calc_org sb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym | ||
|
||
install.bin: bas13.bin.sym install.asm | ||
ssb.bin: equates.asm bas.asm calc_org | ||
# Determine length of ROM | ||
lwasm -D COCO3 -D BASIC_START=0 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym | ||
# Assemble again with perfect offset | ||
lwasm -D COCO3 -D BASIC_START=`./calc_org ssb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym | ||
|
||
instsb.bin: sb.bin.sym install.asm | ||
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym | ||
|
||
instssb.bin: ssb.bin.sym install.asm | ||
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym | ||
|
||
SQUANCHY.DSK: readme.bas s.bas squanchy.bas install.bin bas13.bin | ||
SQUANCHY.DSK: readme.bas s.bas squanchy.bas instsb.bin instssb.bin sb.bin ssb.bin | ||
decb dskini SQUANCHY.DSK | ||
decb copy -t readme.bas SQUANCHY.DSK,README.BAS | ||
decb copy -t s.bas SQUANCHY.DSK,S.BAS | ||
decb copy -t squanchy.bas SQUANCHY.DSK,SQUANCHY.BAS | ||
decb copy -2b install.bin SQUANCHY.DSK,INSTALL.BIN | ||
decb copy -2b bas13.bin SQUANCHY.DSK,BAS13.BIN | ||
decb copy -2b instsb.bin SQUANCHY.DSK,INSTSB.BIN | ||
decb copy -2b instssb.bin SQUANCHY.DSK,INSTSSB.BIN | ||
decb copy -2b sb.bin SQUANCHY.DSK,SB.BIN | ||
decb copy -2b ssb.bin SQUANCHY.DSK,SSB.BIN | ||
|
||
clean: | ||
-rm -f *.bin *.lst *.sym SQUANCHY.DSK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
10 PCLEAR 1 : CLEAR 50, 8192 | ||
20 PRINT "LOAD SQUANCHY BASIC ROM, OFFSET INTO LOWER RAM" | ||
30 LOADM "BAS13.BIN",33024 | ||
40 PRINT "LOAD INSTALLER" | ||
50 LOADM "INSTALL.BIN" | ||
60 PRINT "TURN OFF DRIVE MOTOR" | ||
70 POKE 65344,0 | ||
80 PRINT "EXECUTE" | ||
90 EXEC | ||
10 PCLEAR 1:CLEAR 50, 8192 | ||
20 IF PEEK(58108)=77 THEN PRINT "COCO 3 DETECTED":A$="SSB.BIN":B$="INSTSSB.BIN":GOTO 40 | ||
30 A$="SB.BIN":B$="INSTSB.BIN" | ||
40 PRINT "LOAD SQUANCHY BASIC ROM, OFFSET INTO LOWER RAM" | ||
50 LOADM A$,33024 | ||
60 PRINT "LOAD INSTALLER" | ||
70 LOADM B$ | ||
80 PRINT "TURN OFF DRIVE MOTOR" | ||
90 POKE 65344,0 | ||
100 PRINT "EXECUTE" | ||
110 EXEC |