zcc +mz -lm -o adventure -create-app adv_a.c
-or-
zcc +mzansi -lm -o adventure -create-app adv_a.c
This command will build a .M12 tape image. It is possible to choose a full VT/ANSI emulation or a tiny console support.
There’s a known issue with an old Sharp MZ emulator (MZ700WIN). If you experience problems, try running the program under a different emulator.