* Moved the BASIC stub that calls the compiled program into it's own segment
named EXEHDR. * Renamed BASICHDR to EXEHDR for the PET-II machines. * Moved the call to CHRCH in front of the code that saves the zero page, since open files are sometimes remembered in the zero page, so we need to close them before we grab a copy. git-svn-id: svn://svn.cc65.org/cc65/trunk@4507 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
MEMORY {
|
||||
ZP: start = $0002, size = $001A, type = rw, define = yes;
|
||||
RAM: start = $1Bff, size = $A401, file = %O, define = yes;
|
||||
RAM: start = $1BFF, size = $A401, file = %O, define = yes;
|
||||
}
|
||||
SEGMENTS {
|
||||
EXEHDR: load = RAM, type = ro;
|
||||
STARTUP: load = RAM, type = ro;
|
||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||
|
||||
@@ -3,6 +3,7 @@ MEMORY {
|
||||
RAM: start = $0FFF, size = $7001, file = %O;
|
||||
}
|
||||
SEGMENTS {
|
||||
EXEHDR: load = RAM, type = ro;
|
||||
STARTUP: load = RAM, type = ro;
|
||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||
|
||||
@@ -3,6 +3,7 @@ MEMORY {
|
||||
RAM: start = $07FF, size = $C801, file = %O, define = yes;
|
||||
}
|
||||
SEGMENTS {
|
||||
EXEHDR: load = RAM, type = ro;
|
||||
STARTUP: load = RAM, type = ro;
|
||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
MEMORY {
|
||||
BASICHDR: start = $0001, size = $0050, fill = yes, fillval = 0, type = rw, file = %O;
|
||||
HEADER: start = $0001, size = $0050, fill = yes, fillval = 0, type = rw, file = %O;
|
||||
ZP: start = $0051, size = $00AD, fill = yes, fillval = 0, type = rw, file = %O, define = yes;
|
||||
STARTUP: start = $00FE, size = $0102, fill = yes, fillval = 0, file = %O;
|
||||
PAGE2: start = $0200, size = $0100, fill = yes, fillval = 0, file = %O;
|
||||
@@ -9,7 +9,7 @@ MEMORY {
|
||||
VIDRAM: start = $F000, size = $0400, define = yes, file = "";
|
||||
}
|
||||
SEGMENTS {
|
||||
BASICHDR: load = BASICHDR, type = rw;
|
||||
EXEHDR: load = HEADER, type = rw;
|
||||
STARTUP: load = STARTUP, type = rw;
|
||||
PAGE2: load = PAGE2, type = rw;
|
||||
PAGE3: load = PAGE3, type = rw;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
MEMORY {
|
||||
BASICHDR: start = $0001, size = $0050, type = rw, fill = yes, fillval = 0, file = %O;
|
||||
HEADER: start = $0001, size = $0050, type = rw, fill = yes, fillval = 0, file = %O;
|
||||
ZP: start = $0051, size = $00AD, type = rw, define = yes, fill = yes, fillval = 0, file = %O;
|
||||
STARTUP: start = $00FE, size = $0102, fill = yes, fillval = 0, file = %O;
|
||||
PAGE2: start = $0200, size = $0100, fill = yes, fillval = 0, file = %O;
|
||||
PAGE3: start = $0300, size = $0100, fill = yes, fillval = 0, file = %O;
|
||||
RAM: start = $0400, size = $FAAE, file = %O;
|
||||
}
|
||||
}
|
||||
SEGMENTS {
|
||||
BASICHDR: load = BASICHDR, type = rw;
|
||||
EXEHDR: load = HEADER, type = rw;
|
||||
STARTUP: load = STARTUP, type = rw;
|
||||
PAGE2: load = PAGE2, type = rw;
|
||||
PAGE3: load = PAGE3, type = rw;
|
||||
|
||||
@@ -3,6 +3,7 @@ MEMORY {
|
||||
RAM: start = $03FF, size = $7BFF, file = %O;
|
||||
}
|
||||
SEGMENTS {
|
||||
EXEHDR: load = RAM, type = ro;
|
||||
STARTUP: load = RAM, type = ro;
|
||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||
|
||||
@@ -3,6 +3,7 @@ MEMORY {
|
||||
RAM: start = $0FFF, size = $ED01, file = %O;
|
||||
}
|
||||
SEGMENTS {
|
||||
EXEHDR: load = RAM, type = ro;
|
||||
STARTUP: load = RAM, type = ro;
|
||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||
|
||||
@@ -5,6 +5,7 @@ MEMORY {
|
||||
RAM: start = $11FF, size = $6E01, define = yes, file = %O;
|
||||
}
|
||||
SEGMENTS {
|
||||
EXEHDR: load = RAM, type = ro;
|
||||
STARTUP: load = RAM, type = ro;
|
||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||
|
||||
@@ -3,6 +3,7 @@ MEMORY {
|
||||
RAM: start = $0FFF, size = $0E01, define = yes, file = %O;
|
||||
}
|
||||
SEGMENTS {
|
||||
EXEHDR: load = RAM, type = ro;
|
||||
STARTUP: load = RAM, type = ro;
|
||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||
|
||||
Reference in New Issue
Block a user