Minor cleanup in readcpu
This commit is contained in:
parent
1e35f035a5
commit
46b20f449a
1 changed files with 128 additions and 120 deletions
|
@ -209,8 +209,7 @@ static void build_insn (int insn)
|
|||
int cflow = 0;
|
||||
|
||||
// Mask of flags set/used
|
||||
unsigned char flags_set = 0;
|
||||
unsigned char flags_used = 0;
|
||||
unsigned char flags_set = 0, flags_used = 0;
|
||||
|
||||
id = defs68k[insn];
|
||||
|
||||
|
@ -344,7 +343,8 @@ out2:
|
|||
break;
|
||||
default: abort();
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
mnemonic[mnp] = opcstr[pos];
|
||||
if (mnemonic[mnp] == 'f') {
|
||||
find = -1;
|
||||
|
@ -483,7 +483,8 @@ out2:
|
|||
pos += 4;
|
||||
} while (opcstr[pos] == ',');
|
||||
pos++;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (opcstr[pos + 4] == '-') {
|
||||
/* replacement */
|
||||
if (mode_from_str(opcstr + pos) == srcmode)
|
||||
|
@ -491,7 +492,8 @@ out2:
|
|||
else
|
||||
goto nomatch;
|
||||
pos += 10;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
/* normal */
|
||||
while (mode_from_str(opcstr + pos) != srcmode) {
|
||||
pos += 4;
|
||||
|
@ -533,7 +535,8 @@ out2:
|
|||
pos += 4;
|
||||
} while (opcstr[pos] == ',');
|
||||
pos++;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (opcstr[pos + 4] == '-') {
|
||||
/* replacement */
|
||||
if (mode_from_str(opcstr + pos) == srcmode)
|
||||
|
@ -541,7 +544,8 @@ out2:
|
|||
else
|
||||
goto nomatch;
|
||||
pos += 10;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
/* normal */
|
||||
while (mode_from_str(opcstr + pos) != srcmode) {
|
||||
pos += 4;
|
||||
|
@ -641,7 +645,8 @@ out2:
|
|||
pos += 4;
|
||||
} while (opcstr[pos] == ',');
|
||||
pos++;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (opcstr[pos + 4] == '-') {
|
||||
/* replacement */
|
||||
if (mode_from_str(opcstr + pos) == destmode)
|
||||
|
@ -649,7 +654,8 @@ out2:
|
|||
else
|
||||
goto nomatch;
|
||||
pos += 10;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
/* normal */
|
||||
while (mode_from_str(opcstr + pos) != destmode) {
|
||||
pos += 4;
|
||||
|
@ -692,7 +698,8 @@ out2:
|
|||
pos += 4;
|
||||
} while (opcstr[pos] == ',');
|
||||
pos++;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (opcstr[pos + 4] == '-') {
|
||||
/* replacement */
|
||||
if (mode_from_str(opcstr + pos) == destmode)
|
||||
|
@ -700,7 +707,8 @@ out2:
|
|||
else
|
||||
goto nomatch;
|
||||
pos += 10;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
/* normal */
|
||||
while (mode_from_str(opcstr + pos) != destmode) {
|
||||
pos += 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue