mirror of
https://github.com/cc65/cc65.git
synced 2024-06-30 16:29:58 +00:00
atarixl linker cfg file cleanups; set default load address to 400 for atarixl
This commit is contained in:
parent
aac88eac53
commit
5caf6c8854
|
@ -1,5 +1,5 @@
|
||||||
FEATURES {
|
FEATURES {
|
||||||
STARTADDRESS: default = $2E00;
|
STARTADDRESS: default = $2400;
|
||||||
}
|
}
|
||||||
|
|
||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
|
@ -17,7 +17,8 @@ MEMORY {
|
||||||
|
|
||||||
# "system check" load chunk
|
# "system check" load chunk
|
||||||
SYSCHKHDR: file = %O, start = $0000, size = $0004;
|
SYSCHKHDR: file = %O, start = $0000, size = $0004;
|
||||||
SYSCHK: file = %O, start = $2E00, size = $0E00;
|
SYSCHK: file = %O, start = $2E00, size = $0300;
|
||||||
|
SYSCHKTRL: file = %O, start = $0000, size = $0006;
|
||||||
|
|
||||||
# "shadow RAM preparation" load chunk
|
# "shadow RAM preparation" load chunk
|
||||||
SRPREPHDR: file = %O, start = $0000, size = $0004;
|
SRPREPHDR: file = %O, start = $0000, size = $0004;
|
||||||
|
@ -28,11 +29,11 @@ MEMORY {
|
||||||
MAINHDR: file = %O, start = $0000, size = $0004;
|
MAINHDR: file = %O, start = $0000, size = $0004;
|
||||||
RAM: file = %O, define = yes, start = %S +
|
RAM: file = %O, define = yes, start = %S +
|
||||||
__SAVEAREA_SIZE__ +
|
__SAVEAREA_SIZE__ +
|
||||||
__LOWBUFS_SIZE__, size = $D000 -
|
__LOWDATA_SIZE__, size = $D000 -
|
||||||
__STACKSIZE__ -
|
__STACKSIZE__ -
|
||||||
%S -
|
%S -
|
||||||
__SAVEAREA_SIZE__ -
|
__SAVEAREA_SIZE__ -
|
||||||
__LOWBUFS_SIZE__;
|
__LOWDATA_SIZE__;
|
||||||
|
|
||||||
# defines entry point into program
|
# defines entry point into program
|
||||||
TRAILER: file = %O, start = $0000, size = $0006;
|
TRAILER: file = %O, start = $0000, size = $0006;
|
||||||
|
@ -49,10 +50,11 @@ SEGMENTS {
|
||||||
|
|
||||||
SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
|
SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
|
||||||
SYSCHK: load = SYSCHK, type = rw, define = yes, optional = yes;
|
SYSCHK: load = SYSCHK, type = rw, define = yes, optional = yes;
|
||||||
|
SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
|
||||||
|
|
||||||
SRPREPHDR: load = SRPREPHDR, type = ro;
|
SRPREPHDR: load = SRPREPHDR, type = ro;
|
||||||
SAVEAREA: load = SRPREP, type = bss, define = yes; # shared btw. SRPREP and RAM
|
SAVEAREA: load = SRPREP, type = bss, define = yes; # shared btw. SRPREP and RAM
|
||||||
LOWBUFS: load = SRPREP, type = bss, define = yes;
|
LOWDATA: load = SRPREP, type = bss, define = yes; # " " " " " " " "
|
||||||
SRPREP: load = SRPREP, type = rw, define = yes;
|
SRPREP: load = SRPREP, type = rw, define = yes;
|
||||||
SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw, define = yes, optional = yes;
|
SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw, define = yes, optional = yes;
|
||||||
SRPREPTRL: load = SRPREPTRL, type = ro;
|
SRPREPTRL: load = SRPREPTRL, type = ro;
|
||||||
|
|
|
@ -117,7 +117,7 @@ sram_init:
|
||||||
zpptr1: .res 2
|
zpptr1: .res 2
|
||||||
|
|
||||||
|
|
||||||
.segment "LOWBUFS"
|
.segment "LOWDATA"
|
||||||
|
|
||||||
; bounce buffers for CIO and SIO calls
|
; bounce buffers for CIO and SIO calls
|
||||||
bounce_buffer: .res BUFSZ_SIO
|
bounce_buffer: .res BUFSZ_SIO
|
||||||
|
|
|
@ -17,7 +17,7 @@ DEBUG = 1
|
||||||
|
|
||||||
.export syschk
|
.export syschk
|
||||||
.import __SYSCHK_LOAD__
|
.import __SYSCHK_LOAD__
|
||||||
.import __SAVEAREA_LOAD__
|
.import __SAVEAREA_LOAD__ ; needed by xlmemchk.inc
|
||||||
|
|
||||||
.include "zeropage.inc"
|
.include "zeropage.inc"
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
|
@ -64,7 +64,7 @@ cont: ldx #0 ; channel 0
|
||||||
.segment "SYSCHKHDR"
|
.segment "SYSCHKHDR"
|
||||||
|
|
||||||
.word __SYSCHK_LOAD__
|
.word __SYSCHK_LOAD__
|
||||||
.word trailer - 1
|
.word end - 1
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Actual code
|
; Actual code
|
||||||
|
@ -142,10 +142,13 @@ loop: dey
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
end:
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Chunk "trailer" - sets INITAD
|
; Chunk "trailer" - sets INITAD
|
||||||
|
|
||||||
trailer:
|
.segment "SYSCHKTRL"
|
||||||
|
|
||||||
.word INITAD
|
.word INITAD
|
||||||
.word INITAD+1
|
.word INITAD+1
|
||||||
.word syschk
|
.word syschk
|
||||||
|
|
Loading…
Reference in New Issue
Block a user