Commit 7ab6873a authored by Ricardo Quesada's avatar Ricardo Quesada
Browse files

generates commando.prg

parent 92e84a3e
......@@ -7,6 +7,10 @@ C1541 = c1541
all: clean d64 run
commando.prg: src/commando.asm
64tass -Wall --cbm-prg -o bin/commando.prg -L bin/list-commando.txt src/commando.asm
md5sum bin/commando.prg orig/commando.prg
co1.prg: src/main.asm src/music.asm \
src/l0-charset.bin src/l1-charset.bin \
src/l0-map.bin src/l0-padding.bin src/l1-map.bin \
......@@ -24,7 +28,7 @@ co3.prg: src/sprites.bin src/main-map.bin src/main-padding.bin
d64: co1.prg co2.prg co3.prg
$(C1541) -format "commando 2084,rq" d64 $(D64_IMAGE)
$(C1541) $(D64_IMAGE) -write orig/commando.prg "commando"
$(C1541) $(D64_IMAGE) -write bin/commando.prg "commando"
$(C1541) $(D64_IMAGE) -write bin/co1.prg co1
$(C1541) $(D64_IMAGE) -write bin/co2.prg co2
$(C1541) $(D64_IMAGE) -write bin/co3.prg co3
......@@ -38,4 +42,4 @@ runsc: d64
clean:
-rm $(D64_IMAGE)
-rm bin/co1.prg bin/co2.prg bin/co3.prg
-rm bin/commando.prg bin/co1.prg bin/co2.prg bin/co3.prg
e080D = $080D
;
; **** PREDEFINED LABELS ****
;
ROM_SETLFS = $FFBA
ROM_SETNAM = $FFBD
ROM_LOAD = $FFD5
* = $032C
; $032C (ind) - close or abort all files
ROM_CLALLi
.BYTE $34,$03,$66,$FE
; $0330 (ind) - load after call SETLFS,SETNAM
ROM_LOADi
.BYTE $A5,$F4
; $0332 (ind) - save after call SETLFS,SETNAM
ROM_SAVEi
.BYTE $ED,$F5,$A9,$2F,$8D,$2C,$03,$A9
.BYTE $F3,$8D,$2D,$03,$20,$E7,$FF,$A9
.BYTE $00,$20,$90,$FF,$A2,$00,$BD,$56
.BYTE $03,$F0,$06,$20,$D2,$FF,$E8,$D0
.BYTE $F5,$4C,$D0,$03,$93
.BYTE $0D,$0D,$0D, $0D,$0D,$0D,$0D
.TEXT " COMPLIMENTS OF FLOP"
.BYTE $0D, $0D
.TEXT " THE FLORIDA LEAGUE OF PIRATES ", $00
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
LDA #$01 ;#%00000001
TAY
LDX #$08 ;#%00001000
JSR ROM_SETLFS ;$FFBA - set file parameters
LDA #$03 ;#%00000011
LDY #$03 ;#%00000011
LDX #$FD ;#%11111101
JSR ROM_SETNAM ;$FFBD - set file name
JSR s03F0
JMP e080D
.BYTE $00,$00,$00,$00,$00,$00,$00,$00
.BYTE $00
s03F0 LDA #$00
JSR ROM_LOAD ;$FFD5 - load after call SETLFS,SETNAM
INC a03FF
RTS
.BYTE $00,$00,$00,$00
a03FF =*+2
FILENAME
.TEXT "CO1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment