]> Shamusworld >> Repos - rmac/commitdiff
Removed redundant table
authorggn <ggn@atari.org>
Thu, 24 Mar 2022 11:43:45 +0000 (13:43 +0200)
committerShamus Hammons <jlhamm@acm.org>
Mon, 30 May 2022 19:56:38 +0000 (14:56 -0500)
token.c

diff --git a/token.c b/token.c
index 08a491678590fb17b6615895055406ffd1a9aeea..89c7f0ab57787beba4ecbdcfe37ffa35ce6043cb 100644 (file)
--- a/token.c
+++ b/token.c
@@ -154,14 +154,6 @@ static char * regname[] = {
        "a10","b10","x","y","","","ab","ba"  // 312,319
 };
 
-WARNING("We should get rid of this table, it's a subset of the table above")
-static char * riscregname[] = {
-        "r0",  "r1",  "r2",  "r3",  "r4", "r5",   "r6",  "r7",
-        "r8",  "r9", "r10", "r11", "r12", "r13", "r14", "r15",
-       "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23",
-       "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31"
-};
-
 
 //
 // Initialize tokenizer
@@ -517,16 +509,11 @@ arg_num:
                                                // This is a hack. It might be better table-driven.
                                                d = NULL;
 
-                                               if ((*tk >= REG68_D0) && !rdsp && !rgpu)
+                                               if (*tk >= REG68_D0)
                                                {
                                                        d = regname[(int)*tk++ - REG68_D0];
                                                        goto strcopy;
                                                }
-                                               else if ((*tk >= REGRISC_R0) && (*tk <= REGRISC_R31))
-                                               {
-                                                       d = riscregname[(int)*tk++ - REGRISC_R0];
-                                                       goto strcopy;
-                                               }
                                                else
                                                {
                                                        switch ((int)*tk++)