Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
$ sna2ctl.py --hex -m river-raid.prof river-raid.z80 > river-raid.ctl
  • Loading branch information
morozov committed Feb 3, 2021
0 parents commit 63bd398
Show file tree
Hide file tree
Showing 7 changed files with 25,562 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.z80
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
GAME=river-raid

ASM=$(GAME).asm
CTL=$(GAME).ctl
PRISTINE_Z80=$(GAME).pristine.z80
SKOOL=$(GAME).skool
T2S=$(GAME).t2s
Z80=$(GAME).z80

PC=23762
SP=65344

.PHONY: all
all: $(ASM) $(Z80)

$(ASM): $(SKOOL)
skool2asm.py --create-labels $< > $@

$(Z80): $(SKOOL)
skool2bin.py $< - | bin2sna.py --border 0 --org 16384 --start $(PC) --stack $(SP) - $@
diff -u $(PRISTINE_Z80) $(Z80)

$(SKOOL): $(PRISTINE_Z80) $(CTL)
sna2skool.py --hex $(PRISTINE_Z80) --ctl $(CTL) > $@

$(PRISTINE_Z80): $(T2S)
tap2sna.py -f @$(T2S) \
--reg pc=$(PC) \
--reg sp=$(SP) \
https://zxaaa.net/DENIED/River%20Raid%20%281984%29%28Activision%29.tzx \
$(PRISTINE_Z80)

clean:
rm -f \
*.asm \
*.skool \
*.z80
Loading

0 comments on commit 63bd398

Please sign in to comment.