cc65/libsrc/sim6502/exehdr.s
bbbradsmith fb7d4acd5c versionable header for sim65
load and run address now configured from header
fix error codes not to conflict with test
fix test/misc/endless.c which is supposed to fail if an endless loop does not occur
2019-05-29 22:56:51 +02:00

20 lines
717 B
ArmAsm

;
; Oliver Schmidt, 2013-05-16
;
; This module supplies a 2 byte header identifying the simulator type,
; and parameter stack pointer sp.
;
.export __EXEHDR__ : absolute = 1 ; Linker referenced
.importzp sp
.import __MAIN_START__
.import sim65start
.segment "EXEHDR"
.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
.addr sim65start ; reset address