1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-27 04:16:12 +00:00
Files
cc65/libsrc/atari/exehdr.s
Christian Groessler 5cb1bc60fc Add 'define=yes' for INIT segment to atari-asm.cfg and atari-asm-xex.cfg linker configs.
libsrc/atari/exehdr.s: Add (empty) INIT segment to cover assembler programs which link with
exehdr.s.
2025-04-09 22:51:11 +02:00

16 lines
555 B
ArmAsm

; This file defines the EXE header and main chunk load header for Atari executables
.export __EXEHDR__: absolute = 1
.import __MAIN_START__, __INIT_LOAD__
.segment "EXEHDR"
.word $FFFF
.segment "MAINHDR"
.word __MAIN_START__
.word __INIT_LOAD__ - 1
; Define the INIT segment so that __INIT_LOAD__ from above '.import' is always defined.
; The segment is normally present when linking a C program, but not necessarily when linking an assembler program.
.segment "INIT"