From be048d3184d451c76cf56dd706be8d087c477d77 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 14 Apr 2026 06:45:36 -0400 Subject: The Great Migration: move all the screen memory to the $4000-$7FFF bank window, move code to $8000, move data/rodata/bss to $2000, move rx_buf and tx_buf, etc etc. --- config/Makefile | 2 +- config/exehdr.s | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 config/exehdr.s (limited to 'config') diff --git a/config/Makefile b/config/Makefile index b27952f..bef6296 100644 --- a/config/Makefile +++ b/config/Makefile @@ -3,7 +3,7 @@ all: config.xex #config.xex: config.c exetrailer.s ../src/config.h ../src/config.c config.xex: - cl65 -DVERSION='"$(VERSION)"' -m config.map -Oris -t atari -C atari.cfg -o config.xex config.c os2ram.c ../src/exehdr.s exetrailer.s + cl65 -DVERSION='"$(VERSION)"' -m config.map -Oris -t atari -C atari.cfg -o config.xex config.c os2ram.c exehdr.s exetrailer.s clean: rm -f config.xex diff --git a/config/exehdr.s b/config/exehdr.s new file mode 100644 index 0000000..7abb7c1 --- /dev/null +++ b/config/exehdr.s @@ -0,0 +1,11 @@ +; This file defines the EXE header and main chunk load header for Atari executables + + .export __EXEHDR__: absolute = 1 + .import __MAIN_START__, __BSS_LOAD__ + +.segment "EXEHDR" + .word $FFFF + +.segment "MAINHDR" + .word __MAIN_START__ + .word __BSS_LOAD__ - 1 -- cgit v1.2.3