From 6c9b465ebff8f936c0df8ba7342ba4dff7e3ce40 Mon Sep 17 00:00:00 2001 From: ProductionDave Date: Thu, 10 Oct 2024 12:19:10 +1300 Subject: [PATCH 1/3] Add prompt for overwrite, fix makefile --- Makefile | 8 ++- xr.com | Bin 1021 -> 0 bytes xr.z80 | 190 +++++++++++++++++++++++++++++++++++++------------------ xs.com | Bin 935 -> 0 bytes xs.z80 | 2 +- 5 files changed, 133 insertions(+), 67 deletions(-) delete mode 100644 xr.com delete mode 100644 xs.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 19c23eccfe0c0d6dfca7de8c3b9c1ebfa71bb165..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1021 zcmeHDL2J}N7@hg1n`&`G%BqNXm|-s>*xJw{gc4kYdXg1U*hBXavRMu8X3M5&wst9k zp#Q;x2M->4=)ue4F}p@hAea7w6)IlViyk~^>X)>8@(=XjFwFP9Hy`i484ZZ~8q~L- z?!&}&+0vgG@eYzYXmyhEIHmLJL?>#W$QP3WS&hF^ovJ?5Q?EsA=!gbg{Cv{Cz@W0i;&V`g^F$Fmk*`qp-yo;7-OUS7>hoWp6TR8S^2#`oCVEi zRqZKzpTQo&ogB{hnS2?&F$jtmNJ@sksPNgc=&==9%IsEYQi2@nfbxPfd_dxXxSD~{ zB8bYA*_bj1FuDSwK5Zv?TVP0LMhY55xmc!D%DED9lO2~ucS6YyrK2!;1sLWbTq6W` zpnMOMZ-MgVW|X{vAP5H0?%;D3^OZ++2zRR~|F8!^S@{`h>tqnWgpaqfTUog{`rcX{nTzs_szPQz;Ru4P*Gmc_T07H$;hNO5k> zuv=Dx`(1m}b{_G~4sY1*llzRwT%NOW@gtia<^tS?ig(hK-LgvkXyYC40)_a{;$*W1AhV8+t_^o diff --git a/xr.z80 b/xr.z80 index 7992d23..005cb4d 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 A8uHpRV>3lg;UQM1!EZO7>sHd`1sGVGT5BD z&S=MIq|6K?RG97l8L2X#?O@z~Xd|PY%~@`yTkjeFNu2u1_)qjy65~I%Q)P^YJs9m; z+!d9X{hl5@+sJhAp|ZeNpqQcxvx%ZAvnf>b;Uq>uHD*33pbbFl_(Xv8S4A~uwgx+f zHf4c7M$4E#o&-q<9A;(UV*#3TYab(+wqpd^YVcF>CdkESeV7yCMG6cG#i@BE z3dN<#$*IM~X{9+il|X%NU;`BL3sUnk^U@X4z$!uN^AdAY6;dk-Qj?+PGmL`45CQ<} C{J?Gi diff --git a/xs.z80 b/xs.z80 index bcae088..f0ae0b0 100644 --- a/xs.z80 +++ b/xs.z80 @@ -375,4 +375,4 @@ stack: DS 256 stackend: EQU $ END - \ No newline at end of file + From 648d7c85675fb13f64d8d15537fc15ab0064bb45 Mon Sep 17 00:00:00 2001 From: ProductionDave Date: Thu, 10 Oct 2024 12:22:32 +1300 Subject: [PATCH 2/3] remove small roomlabs reference --- xr.z80 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xr.z80 b/xr.z80 index 005cb4d..5f453bf 100644 --- a/xr.z80 +++ b/xr.z80 @@ -427,7 +427,7 @@ vCONOUT:equ $ ; ; Message strings ; -msgHeader: DB 'CP/M XR - Xmodem receive v0.2 / SmallRoomLabs 2017',CR,LF,0 +msgHeader: DB 'CP/M XR - Xmodem receive v0.2',CR,LF,0 msgFailWrt:DB CR,LF,'Failed writing to disk',CR,LF,0 msgFailure:DB CR,LF,'Transmission failed',CR,LF,0 msgCancel: DB CR,LF,'Transmission cancelled',CR,LF,0 From ff9b460620dc88fb433b0f490c15457233cdbe8f Mon Sep 17 00:00:00 2001 From: John Winans Date: Sun, 19 Oct 2025 17:53:29 -0500 Subject: [PATCH 3/3] Ignore targets --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index f4e9c74..8454ea5 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ # Private folders private/ tmp/ + +*.com