diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-03 22:14:03 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-03 22:14:03 -0700 |
commit | 0bff6a48fde21993ada37c97ac3334ac5d4bfccd (patch) | |
tree | 34827c53c5f010c182a1d4e0ec0a91c66374274a | |
parent | a04019c7f4e95d862bce855301e28ba1e7c27dba (diff) | |
download | nasm-0bff6a48fde21993ada37c97ac3334ac5d4bfccd.tar.gz |
Use lower case for VEX and XOP in instructions table
Use lower case for VEX and XOP ("vex", "xop") to avoid visual
confusion (and in the future potential real confusion) with upper-case
hexadecimal numbers.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | disasm.c | 4 | ||||
-rw-r--r-- | insns.h | 2 | ||||
-rwxr-xr-x | insns.pl | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -1066,7 +1066,7 @@ int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize, prefix.vex_lp = prefix.vex[1] & 7; } - ix = itable_VEX[0][prefix.vex_m][prefix.vex_lp]; + ix = itable_vex[0][prefix.vex_m][prefix.vex_lp]; } end_prefix = true; break; @@ -1087,7 +1087,7 @@ int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize, prefix.vex_v = (~prefix.vex[2] >> 3) & 15; prefix.vex_lp = prefix.vex[2] & 7; - ix = itable_VEX[1][prefix.vex_m][prefix.vex_lp]; + ix = itable_vex[1][prefix.vex_m][prefix.vex_lp]; } end_prefix = true; break; @@ -32,7 +32,7 @@ struct disasm_index { /* Tables for the assembler and disassembler, respectively */ extern const struct itemplate * const nasm_instructions[]; extern const struct disasm_index itable[256]; -extern const struct disasm_index * const itable_VEX[2][32][8]; +extern const struct disasm_index * const itable_vex[2][32][8]; /* Common table for the byte codes */ extern const uint8_t nasm_bytecodes[]; @@ -15,12 +15,12 @@ $MAX_OPERANDS = 5; # Add VEX/XOP prefixes -@vex_class = ( 'VEX', 'XOP' ); +@vex_class = ( 'vex', 'xop' ); $vex_classes = scalar(@vex_class); @vexlist = (); %vexmap = (); for ($c = 0; $c < $vex_classes; $c++) { - $vexmap{"\L$vex_class[$c]"} = $c; + $vexmap{$vex_class[$c]} = $c; for ($m = 0; $m < 32; $m++) { for ($lp = 0; $lp < 8; $lp++) { push(@vexlist, sprintf("%s%02X%01X", $vex_class[$c], $m, $lp)); @@ -249,7 +249,7 @@ if ( !defined($output) || $output eq 'd' ) { print D "};\n"; } - printf D "\nconst struct disasm_index * const itable_VEX[%d][32][8] =\n", + printf D "\nconst struct disasm_index * const itable_vex[%d][32][8] =\n", $vex_classes; print D "{\n"; for ($c = 0; $c < $vex_classes; $c++) { |