]> git.sur5r.net Git - cc65/commitdiff
Added the CBM510 as a new target system
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Sep 2001 19:49:27 +0000 (19:49 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Sep 2001 19:49:27 +0000 (19:49 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@910 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ar65/.cvsignore
src/ca65/.cvsignore
src/ld65/.cvsignore
src/ld65/cfg/cbm510.cfg [new file with mode: 0644]
src/ld65/make/gcc.mak
src/ld65/tgtcfg.c

index 765a70274cd4eea2aaefc3d41d5a99cbedd71127..19ac62039b9f0d29f211d422c0df3dfd2cd952cd 100644 (file)
@@ -1,3 +1,3 @@
 .depend
 ar65
-
+.kdbgrc.ar65
index d745ea83a2e1e893dbad2f687ce91213540d47d4..6c020cad8bf9b5547cb523c43f51af01a1866e51 100644 (file)
@@ -1,2 +1,3 @@
 .depend
 ca65
+.kdbgrc.ca65
index 1d5a66f12319815f024806c09376a10366146766..fc7dfc8de9ed4b079902183c46a257d566bd8643 100644 (file)
@@ -1,5 +1,6 @@
 .depend
-ld65
+ld65     
+.kdbgrc.ld65
 *.map
 *.s
 apple2.inc
@@ -7,6 +8,7 @@ atari.inc
 bbc.inc
 c128.inc
 c64.inc
+cbm510.inc
 cbm610.inc
 geos.inc
 none.inc
diff --git a/src/ld65/cfg/cbm510.cfg b/src/ld65/cfg/cbm510.cfg
new file mode 100644 (file)
index 0000000..586412d
--- /dev/null
@@ -0,0 +1,24 @@
+MEMORY {
+    ZP: start = $02, size = $1A, type = rw;
+    RAM: start = $0001, size = $FFF0, file = %O;
+}
+SEGMENTS {
+    CODE: load = RAM, type = wprot;
+    RODATA: load = RAM, type = wprot;
+    DATA: load = RAM, type = rw;
+    BSS: load = RAM, type = bss, define = yes;
+    ZEROPAGE: load = ZP, type = zp;
+}
+FEATURES {
+    CONDES: segment = RODATA,
+           type = constructor,
+           label = __CONSTRUCTOR_TABLE__,
+           count = __CONSTRUCTOR_COUNT__;
+    CONDES: segment = RODATA,
+           type = destructor,
+           label = __DESTRUCTOR_TABLE__,
+           count = __DESTRUCTOR_COUNT__;
+}
+SYMBOLS {
+    __STACKSIZE__ = $800;      # 2K stack
+}
index cc9b8ab3d1ed5016d0f039a152ab6d737971a536..0cdcca1f3f3a4585c133c4d992f27dc7e6106ed4 100644 (file)
@@ -42,7 +42,7 @@ OBJS =        bin.o           \
        scanner.o       \
        segments.o      \
        tgtcfg.o
-                        
+
 # -----------------------------------------------------------------------------
 # List of all config includes
 
@@ -51,6 +51,7 @@ INCS =        apple2.inc      \
        bbc.inc         \
        c64.inc         \
        c128.inc        \
+       cbm510.inc      \
        cbm610.inc      \
        geos.inc        \
        none.inc        \
@@ -115,6 +116,9 @@ c64.inc:            cfg/c64.cfg
 c128.inc:      cfg/c128.cfg
        @$(CVT) $< $@ CfgC128
 
+cbm510.inc:    cfg/cbm510.cfg
+       @$(CVT) $< $@ CfgCBM510
+
 cbm610.inc:    cfg/cbm610.cfg
        @$(CVT) $< $@ CfgCBM610
 
index 46d5ee172783dc39121fae8d9772984c769732c5..e2b0d22e21e7680c9a768fdeddbf2f9d4556c177 100644 (file)
@@ -53,16 +53,17 @@ static const char CfgEmpty[] = "";
 #include "bbc.inc"
 #include "c128.inc"
 #include "c64.inc"
+#include "cbm510.inc"
 #include "cbm610.inc"
 #include "geos.inc"
 #include "none.inc"
 #include "pet.inc"
 #include "plus4.inc"
-                 
+
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                          Data                                    */
 /*****************************************************************************/
 
 
@@ -75,6 +76,7 @@ const TargetDesc Targets [TGT_COUNT] = {
     {          BINFMT_BINARY,  CfgC128         },
     {          BINFMT_BINARY,  CfgEmpty        },      /* Ace */
     {          BINFMT_BINARY,  CfgPlus4        },
+    {          BINFMT_BINARY,  CfgCBM510       },
     {          BINFMT_BINARY,  CfgCBM610       },
     {          BINFMT_BINARY,  CfgPET          },
     {          BINFMT_BINARY,  CfgBBC          },