1 # Port specification for the z80 port running ontop of the Java based
2 # 'ConsoleZ80' emulator.
4 RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
6 SDCCFLAGS += --lesspedantic
10 # Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
11 EXTRAS = fwk/lib/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT)
13 # Rule to generate a Emulator .bin file from the .ihx linker output.
15 ../makebin/makebin -s 32768 < $< > $@ # Must be 32768 due to a bug in ConsoleZ80
17 # Rule to link into .ihx
19 $(SDCC) $(SDCCFLAGS) $< $(EXTRAS)
22 ../../bin/as-z80 -plosgff $@ $<
25 ../../bin/as-z80 -plosgff $@ $<
27 # PENDING: Path to sdcc-extra
30 $(RRZ80) --maxruntime=3 --mapfile=$(<:.bin=.sym) $< > $@
31 -grep -n FAIL $@ /dev/null || true