CC=gcc -Os -w
run: bin 
	stty columns 32
	./star81.exe
	stty columns 80
z80: star81p
	wc star81.c star81.p nop.p
bin: star81 cmp nop
star81p:
	zcc +zx81 -lm -create-app -O3 --list star81.c ; cp a.P star81.p
	zcc +zx81 -lm -create-app -O3 --list nop.c ; cp a.P nop.p
star81:
	$(CC) -o star81.exe star81.c
cmp: cmp.c
	$(CC) -o cmp cmp.c
nop: nop.c
	$(CC) -o nop.exe nop.c
clean:
	rm -f nop star81 cmp *~ a.* ttyrecord x a.P *.lis *.exe
zip:
	zip zxpope_zx81_c_vc3-2022.zip *