Moved the data that keeps a copy of the used zero page locations in its own

segment to reduce the executable size.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3849 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2008-07-03 19:39:14 +00:00
parent ab39981db1
commit f257b2ee81
16 changed files with 34 additions and 11 deletions

View File

@ -174,7 +174,7 @@ initsp:
sta sp+1
rts
.data
.segment "ZPSAVE"
zpsave: .res zpspace

View File

@ -100,7 +100,7 @@ L2: lda zpsave,x
; ------------------------------------------------------------------------
; Data
.data
.segment "ZPSAVE"
zpsave: .res zpspace

View File

@ -182,7 +182,8 @@ IRQStub:
; ------------------------------------------------------------------------
; Data
.data
.segment "ZPSAVE"
zpsave: .res zpspace
.bss

View File

@ -102,10 +102,12 @@ L2: lda zpsave,x
jmp RESTOR
.data
.segment "ZPSAVE"
zpsave: .res zpspace
.bss
spsave: .res 1

View File

@ -150,9 +150,12 @@ IRQStub:
.data
zpsave: .res zpspace
IRQInd: jmp $0000
.segment "ZPSAVE"
zpsave: .res zpspace
.bss
spsave: .res 1

View File

@ -136,9 +136,12 @@ IRQStub:
.data
zpsave: .res zpspace
IRQInd: jmp $0000
.segment "ZPSAVE"
zpsave: .res zpspace
.bss
spsave: .res 1

View File

@ -194,13 +194,16 @@ nohandler:
; Data
.data
zpsave: .res zpspace
; BRK handling
brk_jmp: jmp $0000
spsave: .res 1
.segment "ZPSAVE"
zpsave: .res zpspace
.bss
irqcount: .byte 0

View File

@ -142,9 +142,12 @@ IRQStub:
.data
zpsave: .res zpspace
IRQInd: jmp $0000
.segment "ZPSAVE"
zpsave: .res zpspace
.bss
spsave: .res 1

View File

@ -18,6 +18,7 @@ SEGMENTS {
CODE: load = RAM, type = ro, define = yes;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;

View File

@ -11,6 +11,7 @@ SEGMENTS {
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;

View File

@ -9,6 +9,7 @@ SEGMENTS {
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;

View File

@ -9,6 +9,7 @@ SEGMENTS {
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;

View File

@ -9,6 +9,7 @@ SEGMENTS {
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;

View File

@ -9,6 +9,7 @@ SEGMENTS {
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;

View File

@ -9,6 +9,7 @@ SEGMENTS {
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;

View File

@ -9,6 +9,7 @@ SEGMENTS {
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
ZEROPAGE: load = ZP, type = zp;