From f919899bed45f6303637435850aa26ad37203f68 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 26 Apr 2026 06:36:09 -0400 Subject: Fix atasm compatibility. We can now build with versions of atasm as old as 1.05beta (from November of 2003). --- Makefile | 10 +++++----- font_dl.asm | 8 ++++++++ loading.asm | 10 ++-------- memsetup.asm | 2 ++ 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 88fd65d..f61df43 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ TESTXEX=fnchat-$(shell date +%Y%m%d-%H%M).xex VERSION:=$(shell git describe --dirty --long 2>/dev/null || echo NOGIT )+$(shell date +%Y%m%d-%H%M )@$(shell hostname -s 2>/dev/null || echo UNKNOWN ) -# remove the -a if using older versions of atasm -ATASM=atasm -s -a +ATASM=atasm +ATASMFLAGS=-s all: clean fnchat.xex [ -d /var/tnfs ] && cp fnchat.xex /var/tnfs/ || true @@ -26,15 +26,15 @@ clean: $(MAKE) -f Makefile.client clean %.xex: %.asm - $(ATASM) -o$@ $< + $(ATASM) $(ATASMFLAGS) -o$@ $< memsetup.xex: memsetup.asm loading1.xex: loading.asm - $(ATASM) -o$@ $< + $(ATASM) $(ATASMFLAGS) -o$@ $< loading2.xex: loading.asm - $(ATASM) -o$@ -DCLIENT=1 $< + $(ATASM) $(ATASMFLAGS) -o$@ -DCLIENT=1 $< font_dl.xex: font_dl.asm font.dat diff --git a/font_dl.asm b/font_dl.asm index 31e80f8..f4895c6 100644 --- a/font_dl.asm +++ b/font_dl.asm @@ -1,7 +1,9 @@ + .bank *= $3400 .incbin "font.dat" + .bank *= $3360 dlist_vis .byte $70, $70, $30 ; 2 8-line blanks, 1 4-line blank @@ -42,12 +44,16 @@ status_box_end = status_box + 60 ; $3400 - $37ff is the font! ; shoehorn the transmit & receive buffers here + .bank *= $3800 rx_buf ; 512 bytes + .bank *= $3a00 tx_buf ; 512 bytes + .bank *= $3c00 scr_vis_buf ; not used yet + .bank *= $3fa0 end_marker ; a line_t (42 bytes) .byte