Separate header and trailers of Atari system_check chunk.
This allows to omit the headers and trailers if needed.
This commit is contained in:
@@ -16,8 +16,7 @@
|
|||||||
|
|
||||||
;DEBUG = 1
|
;DEBUG = 1
|
||||||
|
|
||||||
.export __SYSTEM_CHECK__: absolute = 1
|
.export __SYSTEM_CHECK__, __SYSCHK_END__
|
||||||
.import __SYSCHK_LOAD__
|
|
||||||
.import __STARTADDRESS__
|
.import __STARTADDRESS__
|
||||||
|
|
||||||
; the following imports are only needed for the 'atari' target version
|
; the following imports are only needed for the 'atari' target version
|
||||||
@@ -25,10 +24,12 @@
|
|||||||
.import __STACKSIZE__
|
.import __STACKSIZE__
|
||||||
.import __RESERVED_MEMORY__
|
.import __RESERVED_MEMORY__
|
||||||
|
|
||||||
|
; import our header and trailers
|
||||||
|
.forceimport __SYSCHKHDR__, __SYSCHKTRL__
|
||||||
|
|
||||||
.include "zeropage.inc"
|
.include "zeropage.inc"
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
|
|
||||||
|
|
||||||
.macro print_string text
|
.macro print_string text
|
||||||
.local start, cont
|
.local start, cont
|
||||||
jmp cont
|
jmp cont
|
||||||
@@ -229,25 +230,10 @@ delay1: ldx #0
|
|||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
end:
|
__SYSTEM_CHECK__=syschk
|
||||||
|
__SYSCHK_END__:
|
||||||
|
|
||||||
.ifndef __ATARIXL__
|
.ifndef __ATARIXL__
|
||||||
tmp: ; outside of the load chunk, some kind of poor man's .bss
|
tmp: ; outside of the load chunk, some kind of poor man's .bss
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
|
||||||
; Chunk header
|
|
||||||
|
|
||||||
.segment "SYSCHKHDR"
|
|
||||||
|
|
||||||
.word __SYSCHK_LOAD__
|
|
||||||
.word end - 1
|
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
|
||||||
; Chunk "trailer" - sets INITAD
|
|
||||||
|
|
||||||
.segment "SYSCHKTRL"
|
|
||||||
|
|
||||||
.word INITAD
|
|
||||||
.word INITAD+1
|
|
||||||
.word syschk
|
|
||||||
|
|||||||
16
libsrc/atari/system_check_hdr.s
Normal file
16
libsrc/atari/system_check_hdr.s
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
;
|
||||||
|
; Atari startup system check headers
|
||||||
|
;
|
||||||
|
; Christian Groessler, chris@groessler.org, 2013
|
||||||
|
;
|
||||||
|
.export __SYSCHKHDR__: absolute = 1
|
||||||
|
.import __SYSCHK_LOAD__, __SYSCHK_END__
|
||||||
|
|
||||||
|
; ------------------------------------------------------------------------
|
||||||
|
; Chunk header
|
||||||
|
|
||||||
|
.segment "SYSCHKHDR"
|
||||||
|
|
||||||
|
.word __SYSCHK_LOAD__
|
||||||
|
.word __SYSCHK_END__ - 1
|
||||||
|
|
||||||
17
libsrc/atari/system_check_trailer.s
Normal file
17
libsrc/atari/system_check_trailer.s
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
;
|
||||||
|
; Atari startup system check headers
|
||||||
|
;
|
||||||
|
; Christian Groessler, chris@groessler.org, 2013
|
||||||
|
;
|
||||||
|
.export __SYSCHKTRL__: absolute = 1
|
||||||
|
.import __SYSTEM_CHECK__
|
||||||
|
|
||||||
|
.include "atari.inc"
|
||||||
|
; ------------------------------------------------------------------------
|
||||||
|
; Chunk "trailer" - sets INITAD
|
||||||
|
|
||||||
|
.segment "SYSCHKTRL"
|
||||||
|
|
||||||
|
.word INITAD
|
||||||
|
.word INITAD+1
|
||||||
|
.word __SYSTEM_CHECK__
|
||||||
Reference in New Issue
Block a user