Reduced the size of the moveinit subroutine.

Made other changes that were recommended by Oliver.
* Changed its name from move_init to moveinit.
* Used self-modifying code in the subroutine.
* The INIT segment doesn't need to be optional (it's used by the start-up file).
This commit is contained in:
Greg King
2015-10-07 14:56:14 -04:00
parent 074e10d288
commit 8a880580dc
4 changed files with 25 additions and 42 deletions

View File

@@ -46,7 +46,7 @@ SEGMENTS {
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss, define = yes;
BSS: load = RAM, type = bss, define = yes;
INIT: load = MOVE, run = RAM, type = ro, define = yes, optional = yes;
INIT: load = MOVE, run = RAM, type = ro, define = yes;
OVL1ADDR: load = OVL1ADDR, type = ro;
OVERLAY1: load = OVL1, type = ro, define = yes, optional = yes;
OVL2ADDR: load = OVL2ADDR, type = ro;

View File

@@ -25,7 +25,7 @@ SEGMENTS {
DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss, define = yes;
BSS: load = RAM, type = bss, define = yes;
INIT: load = MOVE, run = RAM, type = ro, define = yes, optional = yes;
INIT: load = MOVE, run = RAM, type = ro, define = yes;
}
FEATURES {
CONDES: type = constructor,