]> Shamusworld >> Repos - rmac/blobdiff - amode.c
Fixed assembler not complaining when using RISC regs in 68K mode.
[rmac] / amode.c
diff --git a/amode.c b/amode.c
index b721491dc4d58e4ce2245295fa532370dd010918..2c89911b3c87fc643f0bf5d7f65b97fdcd10316c 100644 (file)
--- a/amode.c
+++ b/amode.c
@@ -84,7 +84,8 @@ int amode(int acount)
        if (acount == 0 || *tok != ',')
                return 1;
 
-       ++tok;                                                   // Eat comma
+       // Eat the comma
+       tok++;
 
        // Parse second addressing mode
        #define AnOK      a1ok
@@ -126,10 +127,9 @@ int reglist(WORD * a_rmask)
                0x0100, 0x0200, 0x0400, 0x0800,
                0x1000, 0x2000, 0x4000, 0x8000
        };
-       WORD rmask;
-       int r, cnt;
 
-       rmask = 0;
+       WORD rmask = 0;
+       int r, cnt;
 
        for(;;)
        {
@@ -140,7 +140,7 @@ int reglist(WORD * a_rmask)
 
                if (*tok == '-')
                {
-                       ++tok;
+                       tok++;
 
                        if (*tok >= KW_D0 && *tok <= KW_A7)
                                cnt = *tok++ & 15;
@@ -161,10 +161,11 @@ int reglist(WORD * a_rmask)
                if (*tok != '/')
                        break;
 
-               ++tok;
+               tok++;
        }
 
        *a_rmask = rmask;
 
        return OK;
 }
+