aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-14 06:45:36 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-14 06:45:36 -0400
commitbe048d3184d451c76cf56dd706be8d087c477d77 (patch)
tree921450c1b11e6fea5232cb8e5e176a53e7a3958e /config
parent66219401006e845f1a176e6a78c4682bd9de8785 (diff)
downloadfujinet-chat-be048d3184d451c76cf56dd706be8d087c477d77.tar.gz
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.
Diffstat (limited to 'config')
-rw-r--r--config/Makefile2
-rw-r--r--config/exehdr.s11
2 files changed, 12 insertions, 1 deletions
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