]> git.sur5r.net Git - cc65/blobdiff - src/common/cpu.c
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / src / common / cpu.c
index 3ac1108a5a48bf817ed0e3b9611d525110eb1ab5..b055fae88b3cad6eec8e4e4ec7dcbda3d71b5075 100644 (file)
@@ -42,7 +42,7 @@
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
@@ -58,10 +58,10 @@ const char* CPUNames[CPU_COUNT] = {
     "65SC02",
     "65C02",
     "65816",
-    "sunplus",
     "sweet16",
     "huc6280",
     "m740",
+    "4510",
 };
 
 /* Tables with CPU instruction sets */
@@ -72,16 +72,16 @@ const unsigned CPUIsets[CPU_COUNT] = {
     CPU_ISET_6502 | CPU_ISET_65SC02,
     CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02,
     CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02 | CPU_ISET_65816,
-    CPU_ISET_SUNPLUS,
     CPU_ISET_SWEET16,
     CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02 | CPU_ISET_HUC6280,
     CPU_ISET_6502 | CPU_ISET_M740,
+    CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02 | CPU_ISET_4510,
 };
 
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -121,21 +121,18 @@ int ValidAddrSizeForCPU (unsigned char AddrSize)
 
 cpu_t FindCPU (const char* Name)
 /* Find a CPU by name and return the target id. CPU_UNKNOWN is returned if
- * the given name is no valid target.
- */
+** the given name is no valid target.
+*/
 {
     unsigned I;
 
     /* Check all CPU names */
     for (I = 0; I < CPU_COUNT; ++I) {
-       if (StrCaseCmp (CPUNames [I], Name) == 0) {
-           return (cpu_t)I;
-       }
+        if (StrCaseCmp (CPUNames [I], Name) == 0) {
+            return (cpu_t)I;
+        }
     }
 
     /* Not found */
     return CPU_UNKNOWN;
 }
-
-
-