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
This commit is contained in:
bbbradsmith
2019-05-29 16:04:54 -04:00
committed by Oliver Schmidt
parent 07ca772932
commit fb7d4acd5c
12 changed files with 129 additions and 39 deletions

View File

@@ -7,8 +7,14 @@
.export __EXEHDR__ : absolute = 1 ; Linker referenced
.importzp sp
.import __MAIN_START__
.import sim65start
.segment "EXEHDR"
.byte .defined(__SIM65C02__)
.byte sp
.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