mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
correct INIT segment semantic is bss, make this consistent across all default cfg
This commit is contained in:
parent
148be69f97
commit
2431fb7d85
@ -27,7 +27,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro start = $4000;
|
CODE: load = MAIN, type = ro start = $4000;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -43,7 +43,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -22,7 +22,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -26,7 +26,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -27,7 +27,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro start = $4000;
|
CODE: load = MAIN, type = ro start = $4000;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -43,7 +43,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -22,7 +22,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -26,7 +26,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -52,7 +52,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro, define = yes;
|
CODE: load = MAIN, type = ro, define = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss, optional = yes;
|
||||||
BSS: load = MAIN, type = bss, define = yes;
|
BSS: load = MAIN, type = bss, define = yes;
|
||||||
AUTOSTRT: load = TRAILER, type = ro;
|
AUTOSTRT: load = TRAILER, type = ro;
|
||||||
OVERLAY1: load = OVL1, type = ro, define = yes, optional = yes;
|
OVERLAY1: load = OVL1, type = ro, define = yes, optional = yes;
|
||||||
|
@ -36,7 +36,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro, define = yes;
|
CODE: load = MAIN, type = ro, define = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss, optional = yes;
|
||||||
BSS: load = MAIN, type = bss, define = yes;
|
BSS: load = MAIN, type = bss, define = yes;
|
||||||
}
|
}
|
||||||
FEATURES {
|
FEATURES {
|
||||||
|
@ -40,7 +40,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro, define = yes;
|
CODE: load = MAIN, type = ro, define = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss, optional = yes;
|
||||||
BSS: load = MAIN, type = bss, define = yes;
|
BSS: load = MAIN, type = bss, define = yes;
|
||||||
AUTOSTRT: load = TRAILER, type = ro;
|
AUTOSTRT: load = TRAILER, type = ro;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro, define = yes;
|
CODE: load = MAIN, type = ro, define = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss, optional = yes;
|
||||||
BSS: load = MAIN, type = bss, define = yes;
|
BSS: load = MAIN, type = bss, define = yes;
|
||||||
AUTOSTRT: load = TRAILER, type = ro;
|
AUTOSTRT: load = TRAILER, type = ro;
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro, define = yes;
|
CODE: load = MAIN, type = ro, define = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss, optional = yes;
|
||||||
BSS: load = MAIN, type = bss, define = yes;
|
BSS: load = MAIN, type = bss, define = yes;
|
||||||
AUTOSTRT: load = TRAILER, type = ro;
|
AUTOSTRT: load = TRAILER, type = ro;
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro, define = yes;
|
CODE: load = MAIN, type = ro, define = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss, optional = yes;
|
||||||
BSS: load = MAIN, type = bss, define = yes;
|
BSS: load = MAIN, type = bss, define = yes;
|
||||||
SRPREPHDR: load = UNUSED, type = ro;
|
SRPREPHDR: load = UNUSED, type = ro;
|
||||||
SRPREPTRL: load = UNUSED, type = ro;
|
SRPREPTRL: load = UNUSED, type = ro;
|
||||||
|
@ -65,7 +65,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro, define = yes;
|
CODE: load = MAIN, type = ro, define = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss, optional = yes;
|
||||||
BSS: load = MAIN, type = bss, define = yes;
|
BSS: load = MAIN, type = bss, define = yes;
|
||||||
AUTOSTRT: load = TRAILER, type = ro;
|
AUTOSTRT: load = TRAILER, type = ro;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
BASTAIL: load = MAIN, type = ro, optional = yes;
|
BASTAIL: load = MAIN, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -44,7 +44,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
OVL1ADDR: load = OVL1ADDR, type = ro;
|
OVL1ADDR: load = OVL1ADDR, type = ro;
|
||||||
|
@ -23,7 +23,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,10 @@ SEGMENTS {
|
|||||||
ZP: load = ZP, type = zp, optional = yes;
|
ZP: load = ZP, type = zp, optional = yes;
|
||||||
VECTORS: load = ROM, run = RAM, type = rw, define = yes;
|
VECTORS: load = ROM, run = RAM, type = rw, define = yes;
|
||||||
DATA: load = ROM, run = RAM, type = rw, define = yes, start = $0204;
|
DATA: load = ROM, run = RAM, type = rw, define = yes, start = $0204;
|
||||||
|
INIT: load = RAM, type = bss, optional = yes;
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
ONCE: load = ROM, type = ro, optional = yes;
|
ONCE: load = ROM, type = ro, optional = yes;
|
||||||
CODE: load = ROM, type = ro;
|
CODE: load = ROM, type = ro;
|
||||||
INIT: load = ROM, type = ro;
|
|
||||||
RODATA: load = ROM, type = ro;
|
RODATA: load = ROM, type = ro;
|
||||||
AUDIO: load = ROM, type = ro, optional = yes, start = $BF00;
|
AUDIO: load = ROM, type = ro, optional = yes, start = $BF00;
|
||||||
SETUP: load = ROM, type = ro, start = $BFE8;
|
SETUP: load = ROM, type = ro, start = $BFE8;
|
||||||
|
@ -57,7 +57,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss,optional = yes;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
BRAM01ADDR: load = BRAM01ADDR, type = ro, optional = yes;
|
BRAM01ADDR: load = BRAM01ADDR, type = ro, optional = yes;
|
||||||
|
@ -24,7 +24,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw, optional = yes;
|
INIT: load = MAIN, type = bss,optional = yes;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ SEGMENTS {
|
|||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = rw;
|
INIT: load = MAIN, type = bss;
|
||||||
ONCE: load = MAIN, type = ro, define = yes;
|
ONCE: load = MAIN, type = ro, define = yes;
|
||||||
BASTAIL: load = MAIN, type = ro, optional = yes;
|
BASTAIL: load = MAIN, type = ro, optional = yes;
|
||||||
BSS: load = BSS, type = bss, define = yes;
|
BSS: load = BSS, type = bss, define = yes;
|
||||||
|
@ -95,12 +95,6 @@ IS_UPPER:
|
|||||||
BAD_CHAR:
|
BAD_CHAR:
|
||||||
jmp plot
|
jmp plot
|
||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
|
||||||
; Initialize the conio subsystem. "INIT" segment is nothing special on the
|
|
||||||
; Creativision, it is part of the "ROM" memory.
|
|
||||||
|
|
||||||
.segment "INIT"
|
|
||||||
|
|
||||||
initconio:
|
initconio:
|
||||||
lda #$0
|
lda #$0
|
||||||
sta SCREEN_PTR
|
sta SCREEN_PTR
|
||||||
|
Loading…
Reference in New Issue
Block a user