]> Shamusworld >> Repos - rmac/commitdiff
Remove all remaining traces of "as68_flag" from the codebase (issue #186)
authorggn <ggn.dbug@gmail.com>
Thu, 15 Jul 2021 16:39:44 +0000 (19:39 +0300)
committerShamus Hammons <jlhamm@acm.org>
Fri, 20 Aug 2021 15:08:06 +0000 (10:08 -0500)
procln.c
rmac.c
rmac.h
symbol.c
token.c

index 4e5a846947e636461b6e9beac1f78cfdda8f8a17..77b7b50f065cb7e4a4b98c7087e957376c473647 100644 (file)
--- a/procln.c
+++ b/procln.c
@@ -222,23 +222,9 @@ loop1:                                                                             // Internal line processing loop
        // Skip past label (but record it)
        if (j == ':' || j == DCOLON)
        {
-as68label:
                label = string[tok[1]];                         // Get label name
                labtyp = tok[2];                                        // Get label type
                tok += 3;                                                       // Go to next line token
-
-               // AS68 MODE:
-               // Looks like another label follows the previous one, so handle
-               // the previous one until there aren't any more
-               if (as68_flag && (*tok == SYMBOL && tok[2] == ':'))
-               {
-                       if (HandleLabel(label, labtyp) != 0)
-                               goto loop;
-
-                       label_defined = label;
-
-                       goto as68label;
-               }
        }
 
        // EOL is legal here...
diff --git a/rmac.c b/rmac.c
index 4f78759070ef6888b0c7897119e87e34ef396d9e..0e070526bbb4c3f18bd583a92a696935bd0db34b 100644 (file)
--- a/rmac.c
+++ b/rmac.c
@@ -29,7 +29,6 @@ int list_flag;                                        // "-l" listing flag on command line
 int list_pag = 1;                              // Enable listing pagination by default
 int verb_flag;                                 // Be verbose about what's going on
 int m6502;                                             // 1, assembling 6502 code
-int as68_flag;                                 // as68 kludge mode
 int glob_flag;                                 // Assume undefined symbols are global
 int lsym_flag;                                 // Include local symbols in object file
 int optim_warn_flag;                   // Warn about possible short branches
@@ -301,7 +300,6 @@ int Process(int argc, char ** argv)
        listing = 0;                                    // Initialize listing level
        list_flag = 0;                                  // Initialize listing flag
        verb_flag = perm_verb_flag;             // Initialize verbose flag
-       as68_flag = 0;                                  // Initialize as68 kludge mode
        glob_flag = 0;                                  // Initialize .globl flag
        optim_warn_flag = 0;                    // Initialize short branch flag
        debug = 0;                                              // Initialize debug flag
diff --git a/rmac.h b/rmac.h
index e44574ff4be4b9b7ace3acda2066931a693a10ad..985d85190ad06f76fdff9d08276ca8b5d08a815e 100644 (file)
--- a/rmac.h
+++ b/rmac.h
@@ -313,7 +313,6 @@ extern int regbank;
 extern char * firstfname;
 extern int list_fd;
 extern int list_pag;
-extern int as68_flag;
 extern int m6502;
 extern int list_flag;
 extern int glob_flag;
index c2da09abece5cd67a0eaf73cc26f72a20764b7f4..50d8379a0963ddae5dde642b68e360edfa63a13e 100644 (file)
--- a/symbol.c
+++ b/symbol.c
@@ -257,8 +257,7 @@ uint32_t sy_assign(uint8_t * buf, uint8_t *(* construct)())
                // Export vanilla labels (but don't make them global). An exception is
                // made for equates, which are not exported unless they are referenced.
                else if (sy->stype == LABEL && lsym_flag
-                       && (sy->sattr & (DEFINED | REFERENCED)) != 0
-                       && (!as68_flag || *sy->sname != 'L'))
+                       && (sy->sattr & (DEFINED | REFERENCED)) != 0)
                {
                        sy->senv = scount++;
 
diff --git a/token.c b/token.c
index d6426600b8f5de1c94acf12256a80b0094eaac81..811ae854c401882da80adf742d988b41ee28b70b 100644 (file)
--- a/token.c
+++ b/token.c
@@ -1005,26 +1005,6 @@ DEBUG { printf("TokenizeLine: Calling fpop() from SRC_IFILE...\n"); }
                curlineno++;                    // Bump line number
                lntag = SPACE;
 
-               if (as68_flag)
-               {
-                       // AS68 compatibility, throw away all lines starting with
-                       // back-quotes, tildes, or '*'
-                       // On other lines, turn the first '*' into a semi-colon.
-                       if (*ln == '`' || *ln == '~' || *ln == '*')
-                               *ln = ';';
-                       else
-                       {
-                               for(p=ln; *p!=EOS; p++)
-                               {
-                                       if (*p == '*')
-                                       {
-                                               *p = ';';
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
                break;
 
        // Macro-block: