Commit f46c8dac authored by Ricardo Quesada's avatar Ricardo Quesada
Browse files

rules to make co3.prg

parent 67042329
......@@ -7,7 +7,10 @@ C1541 = c1541
all: clean d64 run
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 src/l1-padding.bin src/l3-map.bin src/l3-padding.bin
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 \
src/l1-padding.bin src/l3-map.bin src/l3-padding.bin
64tass -Wall --cbm-prg -o bin/co1.prg -L bin/list-co1.txt -l bin/labels.txt --vice-labels src/main.asm
md5sum bin/co1.prg orig/co1.prg
......@@ -15,12 +18,16 @@ co2.prg: src/co2.asm src/main-charset.bin src/l3-charset.bin
64tass -Wall --cbm-prg -o bin/co2.prg -L bin/list-co2.txt src/co2.asm
md5sum bin/co2.prg orig/co2.prg
d64: co1.prg co2.prg
co3.prg: src/sprites.bin
64tass -Wall --cbm-prg -o bin/co3.prg -L bin/list-co3.txt src/co3.asm
md5sum bin/co3.prg orig/co3.prg
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/co1.prg co1
$(C1541) $(D64_IMAGE) -write bin/co2.prg co2
$(C1541) $(D64_IMAGE) -write orig/co3.prg co3
$(C1541) $(D64_IMAGE) -write bin/co3.prg co3
$(C1541) $(D64_IMAGE) -list
run: d64
......@@ -31,4 +38,4 @@ runsc: d64
clean:
-rm $(D64_IMAGE)
-rm bin/co1.prg bin/co2.prg
-rm bin/co1.prg bin/co2.prg bin/co3.prg
......@@ -9,6 +9,8 @@
.BYTE $05,$00,$15,$00,$05,$00,$15,$00
.BYTE $39,$00
; copy from e000-efff to d000-dfff
COPY_FROM_E000_TO_D000 ;$F00A
LDA $DC0E ;CIA1: CIA Control Register A
AND #$FE ;#%11111110
STA $DC0E ;CIA1: CIA Control Register A
......@@ -16,8 +18,9 @@
AND #$FB ;#%11111011
STA $01
LDX #$00 ;#%00000000
_L00
LDA $E000,X
STA $D000,X ;Sprite 0 X Pos
STA $D000,X
LDA $E100,X
STA $D100,X
LDA $E200,X
......@@ -25,7 +28,7 @@
LDA $E300,X
STA $D300,X
LDA $E400,X
STA $D400,X ;Voice 1: Frequency Control - Low-Byte
STA $D400,X
LDA $E500,X
STA $D500,X
LDA $E600,X
......@@ -41,15 +44,16 @@
LDA $EB00,X
STA $DB00,X
LDA $EC00,X
STA $DC00,X ;CIA1: Data Port Register A
STA $DC00,X
LDA $ED00,X
STA $DD00,X ;CIA2: Data Port Register A
STA $DD00,X
LDA $EE00,X
STA $DE00,X
LDA $EF00,X
STA $DF00,X
INX
BNE $F01A
BNE _L00
LDA $01
ORA #$04 ;#%00000100
STA $01
......
* = $E000
; FIXME: can be removed, since it contains garbage
.BINARY "main-map.bin"
; Sprites
* = $E400
.BINARY "sprites.bin"
No preview for this file type
File added
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