diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/Makefile | 2 | ||||
| -rw-r--r-- | config/exehdr.s | 11 |
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 |
