1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 15:29:46 +00:00

Moved actual computation of DOS 3.3 header to linker configurations:

- This will allow for different "formulas".
- This brings things together in one place.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5716 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-06-14 20:44:35 +00:00
parent 9142a300c1
commit 95686b169e
11 changed files with 33 additions and 7 deletions

View File

@ -6,15 +6,11 @@
;
.export __EXEHDR__ : absolute = 1 ; Linker referenced
.import __RAM_START__, __ZPSAVE_RUN__ ; Linker generated
.import __MOVE_START__, __MOVE_LAST__ ; Linker generated
.linecont +
.import __LOADADDR__, __LOADSIZE__ ; Linker generated
; ------------------------------------------------------------------------
.segment "EXEHDR"
.addr __RAM_START__ ; Start address
.word __ZPSAVE_RUN__ - __RAM_START__ + \
__MOVE_LAST__ - __MOVE_START__ ; Size
.addr __LOADADDR__ ; Load address
.word __LOADSIZE__ ; Load length

View File

@ -6,6 +6,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -6,6 +6,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -7,6 +7,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -3,6 +3,9 @@
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -6,6 +6,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -6,6 +6,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -6,6 +6,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -7,6 +7,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -3,6 +3,9 @@
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;

View File

@ -6,6 +6,9 @@ FEATURES {
SYMBOLS {
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0800; # 2k stack
__LOADADDR__: type = weak, value = __RAM_START__;
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
__MOVE_LAST__ - __MOVE_START__;
}
MEMORY {
ZP: file = "", define = yes, start = $0080, size = $001A;