more atarixl linker cfg file cleanups; adapt atarixl-overlay.cfg

This commit is contained in:
Christian Groessler
2013-09-13 21:47:39 +02:00
parent 5caf6c8854
commit 85170998ad
5 changed files with 104 additions and 48 deletions

View File

@@ -18,7 +18,7 @@ DEBUG = 1
.import __SHADOW_RAM_LOAD__, __SHADOW_RAM_SIZE__
.import __SHADOW_RAM_RUN__
.import __CHARGEN_START__, __CHARGEN_SIZE__
.import __SAVEAREA_LOAD__
.import __STARTADDRESS__ ; needed by xlmemchk.inc
.include "zeropage.inc"
.include "atari.inc"

View File

@@ -17,7 +17,7 @@ DEBUG = 1
.export syschk
.import __SYSCHK_LOAD__
.import __SAVEAREA_LOAD__ ; needed by xlmemchk.inc
.import __STARTADDRESS__ ; needed by xlmemchk.inc
.include "zeropage.inc"
.include "atari.inc"
@@ -75,6 +75,7 @@ cont: ldx #0 ; channel 0
no_xl: print_string "This program needs an XL machine."
jmp fail
; entry point
syschk:
lda $fcd8 ; from ostype.s
cmp #$a2

View File

@@ -9,7 +9,7 @@
; by the screen memory afterwards.
;
; inputs:
; __SAVEAREA_LOAD__ - load address of the program
; __STARTADDRESS__ - load address of the program
; outputs:
; lodadr - (high byte only) value to
; write into RAMTOP
@@ -75,8 +75,10 @@ al4k: lda lodadr+1
bne scrmemtst
; not reached
lodadr: .word __SAVEAREA_LOAD__ & $FF00 ; our program's load address, rounded down to page boundary
.ifdef DEBUG
.byte "XLMEMCHK:>"
.endif
lodadr: .word __STARTADDRESS__ & $FF00 ; our program's load address, rounded down to page boundary
tstadr: .res 2
lowadr: .res 2
tmp: .res 1