0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

insns.pl: readabilty improvements for isnsnd.c

Make insnsd.c a bit more consistent in style.
This commit is contained in:
H. Peter Anvin
2008-05-21 11:18:12 -07:00
parent 2fb033af18
commit 36b47fdfdc

View File

@@ -228,18 +228,18 @@ if ( !defined($output) || $output eq 'd' ) {
print D "\nconst struct disasm_index * const itable_VEX[32][8] = {\n "; print D "\nconst struct disasm_index * const itable_VEX[32][8] = {\n ";
for ($m = 0; $m < 32; $m++) { for ($m = 0; $m < 32; $m++) {
print D "\t{\n"; print D " {\n";
for ($lp = 0; $lp < 8; $lp++) { for ($lp = 0; $lp < 8; $lp++) {
$vp = sprintf("VEX%02X%01X", $m, $lp); $vp = sprintf("VEX%02X%01X", $m, $lp);
if ($is_prefix{$vp}) { if ($is_prefix{$vp}) {
printf D "\t\titable_%s,\n", $vp; printf D " itable_%s,\n", $vp;
} else { } else {
print D "\t\tNULL,\n"; print D " NULL,\n";
} }
} }
print D "\t},\n"; print D " },";
} }
print D "};\n"; print D "\n};\n";
close D; close D;
} }