]> git.sur5r.net Git - cc65/blob - libsrc/apple2/exehdr.s
5ebd6f7f1c8b3b0ba8e63f9f820da85e61f36a50
[cc65] / libsrc / apple2 / exehdr.s
1 ;
2 ; Oliver Schmidt, 2012-06-10
3 ;
4 ; This module supplies a 4 byte DOS 3.3 header
5 ; containing the load address and load length.
6 ;
7
8         .export         __EXEHDR__ : absolute = 1       ; Linker referenced
9         .import         __RAM_START__, __ZPSAVE_RUN__   ; Linker generated
10         .import         __MOVE_START__, __MOVE_LAST__   ; Linker generated
11
12         .linecont       +
13
14 ; ------------------------------------------------------------------------
15
16         .segment        "EXEHDR"
17
18         .addr           __RAM_START__                   ; Start address
19         .word           __ZPSAVE_RUN__ - __RAM_START__ + \
20                         __MOVE_LAST__  - __MOVE_START__ ; Size