Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@
# Private folders
private/
tmp/

*.com
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ SERIAL = minicom -b -D $(ESPPORT) $(EMULATIONBAUD)
SED = /bin/sed

TARGET1 = XR
target1_lower = xr
TARGET2 = XS
target2_lower = xs
DRIVE = J:

INTERACTIVE:=$(shell [ -t 0 ] && echo 1)
Expand All @@ -17,14 +19,14 @@ all: $(TARGET1).hex $(TARGET2).hex

full: clean flash

$(TARGET1).hex: $(TARGET1).Z80
$(TARGET1).hex: $(target1_lower).z80
@echo [Z80ASM] $<
@$(ASM) $(FLAGSHEX) $< -l$(basename $<).lst -o tmp1.tmp
@srec_cat tmp1.tmp -binary -offset 0x100 -o tmp2.tmp -intel
@tail -n +2 tmp2.tmp > $@
@sed -i '/:......000000000000000000000000000000000000000000000000000000000000000000..$$/d' $@

$(TARGET2).hex: $(TARGET2).Z80
$(TARGET2).hex: $(target2_lower).z80
@echo [Z80ASM] $<
@$(ASM) $(FLAGSHEX) $< -l$(basename $<).lst -o tmp1.tmp
@srec_cat tmp1.tmp -binary -offset 0x100 -o tmp2.tmp -intel
Expand Down Expand Up @@ -101,4 +103,4 @@ flash: $(TARGET1).hex $(TARGET2).hex
clean:
@echo "[clean]"
@rm -rf *~
@rm -rf *.{cap,log,tmp,rom,bin,hex,lst}
@rm -rf *.{cap,log,tmp,rom,bin,hex,lst,com}
Binary file removed xr.com
Binary file not shown.
Loading