pato-z80-home-computer/pat80-computer/software/z80-assembly/os/Makefile

18 lines
528 B
Makefile
Raw Permalink Normal View History

build:
2020-12-05 12:07:34 +01:00
@echo "Building PAT80 rom..."
@z80asm -i main.asm -o rom.bin || (exit 1)
@echo "Generating label lookup table..."
@z80asm -i main.asm -o rom.bin -L 2>&1 | grep "Sys_" > abi-generated.asm
2020-12-05 12:07:34 +01:00
@echo "PAT80 Rom size:"
@du -h rom.bin
write: build
2020-12-05 12:07:34 +01:00
@echo "Stretching rom to EEPROM size..."
@dd if=/dev/zero of=rom.bin bs=1 count=0 seek=8192
@echo "Writing to EEPROM..."
@minipro -w rom.bin -p "AT28C64B"
run: build
@echo "Starting emulator..."
@../../../../pat80-emulator/z80-python-emulator/src/z80sbc.py -b rom.bin