atari-asm.cfg linker config file
This commit is contained in:
@@ -8,12 +8,11 @@
|
||||
; Stefan Haubenthal
|
||||
;
|
||||
|
||||
.export _exit
|
||||
.export __STARTUP__ : absolute = 1 ; Mark as startup
|
||||
.export _exit, start
|
||||
|
||||
.import initlib, donelib
|
||||
.import callmain, zerobss
|
||||
.import __STARTUP_LOAD__, __BSS_LOAD__
|
||||
.import __RESERVED_MEMORY__
|
||||
.import __RAM_START__, __RAM_SIZE__
|
||||
.ifdef __ATARIXL__
|
||||
@@ -28,19 +27,6 @@
|
||||
.include "atari.inc"
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; EXE header
|
||||
|
||||
.segment "EXEHDR"
|
||||
|
||||
.word $FFFF
|
||||
|
||||
.segment "MAINHDR"
|
||||
|
||||
.word __STARTUP_LOAD__
|
||||
.word __BSS_LOAD__ - 1
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; Actual code
|
||||
|
||||
.segment "STARTUP"
|
||||
|
||||
@@ -212,9 +198,3 @@ LMARGN_save: .res 1
|
||||
.ifndef __ATARIXL__
|
||||
APPMHI_save: .res 2
|
||||
.endif
|
||||
|
||||
|
||||
.segment "AUTOSTRT"
|
||||
.word RUNAD ; defined in atari.inc
|
||||
.word RUNAD+1
|
||||
.word start
|
||||
|
||||
8
libsrc/atari/exehdr.s
Normal file
8
libsrc/atari/exehdr.s
Normal file
@@ -0,0 +1,8 @@
|
||||
; This file defines the EXE header for Atari executables
|
||||
|
||||
.export __EXEHDR__: absolute = 1
|
||||
|
||||
.segment "EXEHDR"
|
||||
|
||||
.word $FFFF
|
||||
|
||||
12
libsrc/atari/exetrailer.s
Normal file
12
libsrc/atari/exetrailer.s
Normal file
@@ -0,0 +1,12 @@
|
||||
; This file defines the EXE file "trailer" which sets the entry point
|
||||
|
||||
.export __AUTOSTART__: absolute = 1
|
||||
.import start
|
||||
|
||||
.include "atari.inc"
|
||||
|
||||
.segment "AUTOSTRT"
|
||||
.word RUNAD ; defined in atari.inc
|
||||
.word RUNAD+1
|
||||
.word start
|
||||
|
||||
9
libsrc/atari/mainhdr.s
Normal file
9
libsrc/atari/mainhdr.s
Normal file
@@ -0,0 +1,9 @@
|
||||
; This file defines the chunk header for the main program load chunk
|
||||
|
||||
.export __MAINCHNKHDR__: absolute = 1
|
||||
.import __RAM_START__, __BSS_LOAD__
|
||||
|
||||
.segment "MAINHDR"
|
||||
|
||||
.word __RAM_START__
|
||||
.word __BSS_LOAD__ - 1
|
||||
Reference in New Issue
Block a user