LDFLAGS = -mz80 --code-loc 0x100 --data-loc 0 --no-std-crt0

tstfrm.com: tstfrm.o
	sdcc $(LDFLAGS) $<
	hex2bin -e com tstfrm.ihx

tstfrm.o: tstfrm.s
	as-z80 -o $@ $<

clean:
	-rm *.lnk *.lst *.map *.o *.ihx *.rel tstfrm.com *.sym

