.export syschk
.import __SYSCHK_LOAD__
- .import __SAVEAREA_LOAD__
+ .import __STARTADDRESS__ ; needed by xlmemchk.inc
.include "zeropage.inc"
.include "atari.inc"
.segment "SYSCHKHDR"
.word __SYSCHK_LOAD__
- .word trailer - 1
+ .word end - 1
; ------------------------------------------------------------------------
; Actual code
no_xl: print_string "This program needs an XL machine."
jmp fail
+; entry point
syschk:
lda $fcd8 ; from ostype.s
cmp #$a2
.endproc
+end:
+
; ------------------------------------------------------------------------
; Chunk "trailer" - sets INITAD
-trailer:
+.segment "SYSCHKTRL"
+
.word INITAD
.word INITAD+1
.word syschk