]> git.sur5r.net Git - cc65/commitdiff
Added basic Apple linker config for assembler programs (similiar to C64).
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Jun 2012 20:59:08 +0000 (20:59 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Jun 2012 20:59:08 +0000 (20:59 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5717 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ld65/cfg/apple2-asm.cfg [new file with mode: 0644]
src/ld65/cfg/apple2enh-asm.cfg [new file with mode: 0644]

diff --git a/src/ld65/cfg/apple2-asm.cfg b/src/ld65/cfg/apple2-asm.cfg
new file mode 100644 (file)
index 0000000..e70ed44
--- /dev/null
@@ -0,0 +1,20 @@
+# Configuration for assembler programs which don't need a special setup
+
+FEATURES {
+    STARTADDRESS: default = $0803;
+}
+SYMBOLS {
+    __LOADADDR__: type = weak, value = __CODE_RUN__;
+    __LOADSIZE__: type = weak, value = __BSS_RUN__ - __CODE_RUN__;
+}
+MEMORY {
+    HEADER: file = %O, start = $0000, size = $0004;
+    RAM:    file = %O, start = %S,    size = $C000 - %S;
+}
+SEGMENTS {
+    EXEHDR: load = HEADER, type = ro,  optional = yes;
+    CODE:   load = RAM,    type = rw,  optional = yes, define = yes;
+    RODATA: load = RAM,    type = ro,  optional = yes;
+    DATA:   load = RAM,    type = rw,  optional = yes;
+    BSS:    load = RAM,    type = bss, optional = yes, define = yes;
+}
diff --git a/src/ld65/cfg/apple2enh-asm.cfg b/src/ld65/cfg/apple2enh-asm.cfg
new file mode 100644 (file)
index 0000000..e70ed44
--- /dev/null
@@ -0,0 +1,20 @@
+# Configuration for assembler programs which don't need a special setup
+
+FEATURES {
+    STARTADDRESS: default = $0803;
+}
+SYMBOLS {
+    __LOADADDR__: type = weak, value = __CODE_RUN__;
+    __LOADSIZE__: type = weak, value = __BSS_RUN__ - __CODE_RUN__;
+}
+MEMORY {
+    HEADER: file = %O, start = $0000, size = $0004;
+    RAM:    file = %O, start = %S,    size = $C000 - %S;
+}
+SEGMENTS {
+    EXEHDR: load = HEADER, type = ro,  optional = yes;
+    CODE:   load = RAM,    type = rw,  optional = yes, define = yes;
+    RODATA: load = RAM,    type = ro,  optional = yes;
+    DATA:   load = RAM,    type = rw,  optional = yes;
+    BSS:    load = RAM,    type = bss, optional = yes, define = yes;
+}