I had to slightly adapt the build and configuration scripts to match the z88dk and MAME projects evolution, so here are the fix steps:
- get the current/latest z88dk nightly build
- get the tetris sources and unzip it somewhere: http://forum.gadgetfactory.net/index.ph ... acman-r30/
- get "srec" and install it (or just put srec_cat in a valid path executable position, it can be just the "tetris" folder if you are using windows.. http://srecord.sourceforge.net/windows.html)
- the PACMAN (puckman) roms slightly changed in MESS so it is preferrable to use the "puckmod" game: create an empty folder into the "tetris" one and rename it to "puckmod" (you can get rid of "puckman"). Some of them will be rewritten during the build process.
- get the "puckmod" roms and put a copy in the new folder
- run the following updated makefile (it will use the new z88dk configuration for the pacman HW and skip the local one):
Code: Select all
CC=zcc
LINK=z80asm
SREC_CAT=srec_cat
MAME=/c/z80/mess/mame
C_FILES=main.c game.c sound.c
OBJECT_FILES=$(C_FILES:%.c=src/%.o)
MAME_DIR=puckmod
MAME_FILES=namcopac.6e namcopac.6f namcopac.6h npacmod.6j
test: $(MAME_FILES:%=$(MAME_DIR)/%)
$(MAME) $(MAME_DIR)
clean:
rm -f $(MAME_FILES:%=$(MAME_DIR)/%)
rm -f rom.o src/*.o
rm -f zcc_opt.def
$(MAME_DIR)/namcopac.6e: rom.o
$(SREC_CAT) $< -binary -crop 0x0000 0x1000 -fill 0x00 0x0000 0x1000 -offset 0x0000 -o $@ -binary
$(MAME_DIR)/namcopac.6f: rom.o
$(SREC_CAT) $< -binary -crop 0x1000 0x2000 -fill 0x00 0x1000 0x2000 -offset -0x1000 -o $@ -binary
$(MAME_DIR)/namcopac.6h: rom.o
$(SREC_CAT) $< -binary -crop 0x2000 0x3000 -fill 0x00 0x2000 0x3000 -offset -0x2000 -o $@ -binary
$(MAME_DIR)/npacmod.6j: rom.o
$(SREC_CAT) $< -binary -crop 0x3000 0x4000 -fill 0x00 0x3000 0x4000 -offset -0x3000 -o $@ -binary
rom.o: $(OBJECT_FILES)
$(CC) +pacman $(OBJECT_FILES) -o $@
src/%.o: src/%.asm
$(CC) +pacman -defvars=0x4c00 -c $<
src/%.o: src/%.c
$(CC) +pacman -c $<