X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=amode.c;fp=amode.c;h=56814123d8d50a3073dfb43fd9ff348e63d3407f;hp=7b471dc14308304f0ec2f70a52ac4a5834976c11;hb=a7d3861005ef22f14caec4e1c899e079334716af;hpb=05d0350b35a6a6b255cb2a3fab7796f5d4ee4d02 diff --git a/amode.c b/amode.c index 7b471dc..5681412 100644 --- a/amode.c +++ b/amode.c @@ -132,8 +132,8 @@ int amode(int acount) // it's a bitfield instruction--check the parameters inside the {} block // for validity if (*tok == '{') - if (check030bf() == ERROR) - return ERROR; + if (check030bf() == ERROR) + return ERROR; if ((acount == 0) || (*tok != ',')) return 1; @@ -169,7 +169,7 @@ int amode(int acount) // It's a bitfield instruction--check the parameters inside the {} block // for validity - if (*tok == '{') + if (*tok == '{') if (check030bf() == ERROR) return ERROR; @@ -309,7 +309,8 @@ int fpu_reglist_left(WORD * a_rmask) else cnt = 0; - r = 0; + r = 0; + while (cnt-- >= 0) rmask |= msktab_minus[r++]; @@ -383,7 +384,6 @@ int fpu_reglist_right(WORD * a_rmask) int check030bf(void) { CHECK00; - tok++; if (*tok == CONST)