diff --git a/.gitignore b/.gitignore index f4e9c74..8454ea5 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ # Private folders private/ tmp/ + +*.com diff --git a/Makefile b/Makefile index a073cc7..906050e 100644 --- a/Makefile +++ b/Makefile @@ -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) @@ -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 @@ -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} diff --git a/xr.com b/xr.com deleted file mode 100644 index 19c23ec..0000000 Binary files a/xr.com and /dev/null differ diff --git a/xr.z80 b/xr.z80 index 7992d23..5f453bf 100644 --- a/xr.z80 +++ b/xr.z80 @@ -14,16 +14,16 @@ ; Common entry points and locations ; BOOT: EQU 0000h ; Warm boot/Reset vector -BDOS: EQU 0005h ; BDOS function vector +BDOS: EQU 0005h ; BDOS function vector DFCB: EQU 5CH ; Default File Control Block -DFCBcr: EQU DFCB+32 ; Current record +DFCBcr: EQU DFCB+32 ; Current record dbuf: EQU 0080h ; ; BDOS function codes ; ;WBOOT: EQU 0 ; System Reset -;GETCON: EQU 1 ; Console Input A