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
|
|
|
|
2024-01-04 13:12:52 +01:00
|
|
|
.macpack cpu
|
|
|
|
|
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
|
2024-01-04 13:12:52 +01:00
|
|
|
.if (.cpu .bitand ::CPU_ISET_6502X)
|
|
|
|
.byte 2
|
|
|
|
.elseif (.cpu .bitand ::CPU_ISET_65C02)
|
|
|
|
.byte 1
|
|
|
|
.elseif (.cpu .bitand ::CPU_ISET_6502)
|
|
|
|
.byte 0
|
|
|
|
.else
|
|
|
|
.error Unknow CPU type.
|
|
|
|
.endif
|
2019-05-29 16:04:54 -04:00
|
|
|
.byte sp ; sp address
|
|
|
|
.addr __MAIN_START__ ; load address
|
2019-05-30 00:06:31 +02:00
|
|
|
.addr startup ; reset address
|