]> git.sur5r.net Git - cc65/commitdiff
New builtin macro package CPU
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Oct 2003 17:37:52 +0000 (17:37 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Oct 2003 17:37:52 +0000 (17:37 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2504 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/macpack.c
src/ca65/macpack.h

index d22d9cc6c664cc42b453bba583114319fadbc7f5..e275693224c81da1964cfc7a978c5e4f707c5f82 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 1998-2003 Ullrich von Bassewitz                                       */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -183,6 +183,18 @@ static char MacCBM[] =
     "        .endrepeat\n"
     ".endmacro\n";
 
+/* CPU defines */
+static char MacCPU[] =
+    "CPU_ISET_6502      = $01\n"
+    "CPU_ISET_65SC02    = $02\n"
+    "CPU_ISET_65C02     = $04\n"
+    "CPU_ISET_65816     = $08\n"
+    "CPU_ISET_SUNPLUS   = $10\n"
+    "CPU_6502           = $01\n"
+    "CPU_65SC02         = $03\n"
+    "CPU_65C02          = $07\n"
+    "CPU_65816          = $0F\n"
+    "CPU_SUNPLUS        = $10\n";
 
 
 
@@ -190,7 +202,8 @@ static char MacCBM[] =
 static char* MacPackages [] = {
     MacGeneric,
     MacLongBranch,
-    MacCBM
+    MacCBM,
+    MacCPU
 };
 
 
index ee62ac1be92a2116b9b3e5dfc42575964338c49f..d46ee9ddafcf2b1b449d58ae44128220335f8faa 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 1998-2003 Ullrich von Bassewitz                                       */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -48,6 +48,7 @@
 #define MAC_GENERIC            0
 #define        MAC_LONGBRANCH          1
 #define MAC_CBM                 2
+#define MAC_CPU                 3