1
0
mirror of https://github.com/cc65/cc65.git synced 2024-08-01 02:29:08 +00:00
cc65/libsrc/apple2/exehdr.s

21 lines
635 B
ArmAsm
Raw Normal View History

;
; Oliver Schmidt, 2012-06-10
;
; This module supplies a 4 byte DOS 3.3 header
; containing the load address and load length.
;
.export __EXEHDR__ : absolute = 1 ; Linker referenced
.import __RAM_START__, __ZPSAVE_RUN__ ; Linker generated
.import __MOVE_START__, __MOVE_LAST__ ; Linker generated
.linecont +
; ------------------------------------------------------------------------
.segment "EXEHDR"
.addr __RAM_START__ ; Start address
.word __ZPSAVE_RUN__ - __RAM_START__ + \
__MOVE_LAST__ - __MOVE_START__ ; Size