X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=amode.c;h=2c89911b3c87fc643f0bf5d7f65b97fdcd10316c;hp=b721491dc4d58e4ce2245295fa532370dd010918;hb=6c1bc379012b1c1ca369e71e39509f3538042382;hpb=d09274f3e3d4dca122c308a621ea8edc100b7d99 diff --git a/amode.c b/amode.c index b721491..2c89911 100644 --- 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; } +