diff options
Diffstat (limited to 'src/emu/cpu/nec/necdasm.c')
-rw-r--r-- | src/emu/cpu/nec/necdasm.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/emu/cpu/nec/necdasm.c b/src/emu/cpu/nec/necdasm.c index e1912a1ce4f..726ada18247 100644 --- a/src/emu/cpu/nec/necdasm.c +++ b/src/emu/cpu/nec/necdasm.c @@ -65,7 +65,7 @@ enum SEG_SS }; -struct I386_OPCODE { +struct NEC_I386_OPCODE { char mnemonic[32]; UINT32 flags; UINT32 param1; @@ -74,15 +74,15 @@ struct I386_OPCODE { offs_t dasm_flags; }; -struct GROUP_OP { +struct NEC_GROUP_OP { char mnemonic[32]; - const I386_OPCODE *opcode; + const NEC_I386_OPCODE *opcode; }; static const UINT8 *opcode_ptr; static const UINT8 *opcode_ptr_base; -static const I386_OPCODE necv_opcode_table1[256] = +static const NEC_I386_OPCODE necv_opcode_table1[256] = { // 0x00 {"add", MODRM, PARAM_RM8, PARAM_REG8, 0 }, @@ -358,7 +358,7 @@ static const I386_OPCODE necv_opcode_table1[256] = {"group2w", GROUP, 0, 0, 0 } }; -static const I386_OPCODE necv_opcode_table2[256] = +static const NEC_I386_OPCODE necv_opcode_table2[256] = { // 0x00 {"???", 0, 0, 0, 0 }, @@ -634,7 +634,7 @@ static const I386_OPCODE necv_opcode_table2[256] = {"brkem", 0, PARAM_UI8, 0, 0 } /* V20,30,40,50 only */ }; -static const I386_OPCODE immb_table[8] = +static const NEC_I386_OPCODE immb_table[8] = { {"add", 0, PARAM_RMPTR8, PARAM_UI8, 0 }, {"or", 0, PARAM_RMPTR8, PARAM_UI8, 0 }, @@ -646,7 +646,7 @@ static const I386_OPCODE immb_table[8] = {"cmp", 0, PARAM_RMPTR8, PARAM_UI8, 0 } }; -static const I386_OPCODE immw_table[8] = +static const NEC_I386_OPCODE immw_table[8] = { {"add", 0, PARAM_RMPTR16, PARAM_IMM, 0 }, {"or", 0, PARAM_RMPTR16, PARAM_IMM, 0 }, @@ -658,7 +658,7 @@ static const I386_OPCODE immw_table[8] = {"cmp", 0, PARAM_RMPTR16, PARAM_IMM, 0 } }; -static const I386_OPCODE immws_table[8] = +static const NEC_I386_OPCODE immws_table[8] = { {"add", 0, PARAM_RMPTR16, PARAM_I8, 0 }, {"or", 0, PARAM_RMPTR16, PARAM_I8, 0 }, @@ -670,7 +670,7 @@ static const I386_OPCODE immws_table[8] = {"cmp", 0, PARAM_RMPTR16, PARAM_I8, 0 } }; -static const I386_OPCODE shiftbi_table[8] = +static const NEC_I386_OPCODE shiftbi_table[8] = { {"rol", 0, PARAM_RMPTR8, PARAM_I8, 0 }, {"ror", 0, PARAM_RMPTR8, PARAM_I8, 0 }, @@ -682,7 +682,7 @@ static const I386_OPCODE shiftbi_table[8] = {"shra", 0, PARAM_RMPTR8, PARAM_I8, 0 } }; -static const I386_OPCODE shiftwi_table[8] = +static const NEC_I386_OPCODE shiftwi_table[8] = { {"rol", 0, PARAM_RMPTR16, PARAM_I8, 0 }, {"ror", 0, PARAM_RMPTR16, PARAM_I8, 0 }, @@ -694,7 +694,7 @@ static const I386_OPCODE shiftwi_table[8] = {"shra", 0, PARAM_RMPTR16, PARAM_I8, 0 } }; -static const I386_OPCODE shiftb_table[8] = +static const NEC_I386_OPCODE shiftb_table[8] = { {"rol", 0, PARAM_RMPTR8, PARAM_1, 0 }, {"ror", 0, PARAM_RMPTR8, PARAM_1, 0 }, @@ -706,7 +706,7 @@ static const I386_OPCODE shiftb_table[8] = {"shra", 0, PARAM_RMPTR8, PARAM_1, 0 } }; -static const I386_OPCODE shiftw_table[8] = +static const NEC_I386_OPCODE shiftw_table[8] = { {"rol", 0, PARAM_RMPTR16, PARAM_1, 0 }, {"ror", 0, PARAM_RMPTR16, PARAM_1, 0 }, @@ -718,7 +718,7 @@ static const I386_OPCODE shiftw_table[8] = {"shra", 0, PARAM_RMPTR16, PARAM_1, 0 } }; -static const I386_OPCODE shiftbv_table[8] = +static const NEC_I386_OPCODE shiftbv_table[8] = { {"rol", 0, PARAM_RMPTR8, PARAM_CL, 0 }, {"ror", 0, PARAM_RMPTR8, PARAM_CL, 0 }, @@ -730,7 +730,7 @@ static const I386_OPCODE shiftbv_table[8] = {"shra", 0, PARAM_RMPTR8, PARAM_CL, 0 } }; -static const I386_OPCODE shiftwv_table[8] = +static const NEC_I386_OPCODE shiftwv_table[8] = { {"rol", 0, PARAM_RMPTR16, PARAM_CL, 0 }, {"ror", 0, PARAM_RMPTR16, PARAM_CL, 0 }, @@ -742,7 +742,7 @@ static const I386_OPCODE shiftwv_table[8] = {"shra", 0, PARAM_RMPTR16, PARAM_CL, 0 } }; -static const I386_OPCODE group1b_table[8] = +static const NEC_I386_OPCODE group1b_table[8] = { {"test", 0, PARAM_RMPTR8, PARAM_UI8, 0 }, {"???", 0, 0, 0, 0 }, @@ -754,7 +754,7 @@ static const I386_OPCODE group1b_table[8] = {"div", 0, PARAM_RMPTR8, 0, 0 } }; -static const I386_OPCODE group1w_table[8] = +static const NEC_I386_OPCODE group1w_table[8] = { {"test", 0, PARAM_RMPTR16, PARAM_IMM, 0 }, {"???", 0, 0, 0, 0 }, @@ -766,7 +766,7 @@ static const I386_OPCODE group1w_table[8] = {"div", 0, PARAM_RMPTR16, 0, 0 } }; -static const I386_OPCODE group2b_table[8] = +static const NEC_I386_OPCODE group2b_table[8] = { {"inc", 0, PARAM_RMPTR8, 0, 0 }, {"dec", 0, PARAM_RMPTR8, 0, 0 }, @@ -778,7 +778,7 @@ static const I386_OPCODE group2b_table[8] = {"???", 0, 0, 0, 0 } }; -static const I386_OPCODE group2w_table[8] = +static const NEC_I386_OPCODE group2w_table[8] = { {"inc", 0, PARAM_RMPTR16, 0, 0 }, {"dec", 0, PARAM_RMPTR16, 0, 0 }, @@ -790,7 +790,7 @@ static const I386_OPCODE group2w_table[8] = {"???", 0, 0, 0, 0 } }; -static const GROUP_OP group_op_table[] = +static const NEC_GROUP_OP group_op_table[] = { { "immb", immb_table }, { "immw", immw_table }, @@ -1507,7 +1507,7 @@ static void handle_fpu(char *s, UINT8 op1, UINT8 op2) } } -static void decode_opcode(char *s, const I386_OPCODE *op, UINT8 op1 ) +static void decode_opcode(char *s, const NEC_I386_OPCODE *op, UINT8 op1 ) { int i; UINT8 op2; |