1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-16 20:38:06 +11:00
collapseos/arch/z80/trs80/Makefile
Virgil Dupras 1e8f957910 emul/trs80: implement floppy emulation
So far, only the first 400 sectors of the disk image are accessible.

TODO: add keybindings to swap floppies on the emulated machine.
2020-12-06 19:52:18 -05:00

29 lines
505 B
Makefile

# See /doc/hw/z80/trs80.txt
TARGET = os.bin
BASE = ../../..
BLKPACK = $(BASE)/tools/blkpack
STAGE = $(BASE)/cvm/stage
EDIR = $(BASE)/emul/z80
EMUL = $(EDIR)/trs80
.PHONY: all
all: $(TARGET)
$(TARGET): xcomp.fs $(STAGE) blkfs
cat xcomp.fs | $(STAGE) blkfs > $@
$(BLKPACK):
$(MAKE) -C ../tools
blkfs: blk.fs $(BLKPACK)
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
$(STAGE):
$(MAKE) -C $(BASE)/cvm stage
$(EMUL):
$(MAKE) -C $(EDIR)
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) -f blkfs $(TARGET)