2013-05-20 20:35:42 +02:00
|
|
|
;
|
|
|
|
; Oliver Schmidt, 2013-05-16
|
|
|
|
;
|
2019-05-29 16:32:44 -04:00
|
|
|
; This module supplies a header used by sim65.
|
2013-05-20 20:35:42 +02:00
|
|
|
;
|
|
|
|
|
|
|
|
.export __EXEHDR__ : absolute = 1 ; Linker referenced
|
2019-05-28 15:29:55 -04:00
|
|
|
.importzp sp
|
2019-05-29 16:04:54 -04:00
|
|
|
.import __MAIN_START__
|
2019-05-30 00:06:31 +02:00
|
|
|
.import startup
|
2013-05-20 20:35:42 +02:00
|
|
|
|
|
|
|
.segment "EXEHDR"
|
|
|
|
|
2019-05-29 16:04:54 -04:00
|
|
|
.byte $73, $69, $6D, $36, $35 ; 'sim65'
|
|
|
|
.byte 2 ; header version
|
|
|
|
.byte .defined(__SIM65C02__) ; CPU type
|
|
|
|
.byte sp ; sp address
|
|
|
|
.addr __MAIN_START__ ; load address
|
2019-05-30 00:06:31 +02:00
|
|
|
.addr startup ; reset address
|