|
|
@@ -201,7 +201,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xC4] = z80_inst_call_cc_nn, |
|
|
|
[0xC5] = z80_inst_push_qq, |
|
|
|
[0xC6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC7] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC7] = z80_inst_rst_p, |
|
|
|
[0xC8] = z80_inst_ret_cc, |
|
|
|
[0xC9] = z80_inst_ret, |
|
|
|
[0xCA] = z80_inst_jp_cc_nn, |
|
|
@@ -209,7 +209,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xCC] = z80_inst_call_cc_nn, |
|
|
|
[0xCD] = z80_inst_call_nn, |
|
|
|
[0xCE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xCF] = z80_inst_unimplemented, // TODO |
|
|
|
[0xCF] = z80_inst_rst_p, |
|
|
|
[0xD0] = z80_inst_ret_cc, |
|
|
|
[0xD1] = z80_inst_pop_qq, |
|
|
|
[0xD2] = z80_inst_jp_cc_nn, |
|
|
@@ -217,7 +217,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xD4] = z80_inst_call_cc_nn, |
|
|
|
[0xD5] = z80_inst_push_qq, |
|
|
|
[0xD6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD7] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD7] = z80_inst_rst_p, |
|
|
|
[0xD8] = z80_inst_ret_cc, |
|
|
|
[0xD9] = z80_inst_exx, |
|
|
|
[0xDA] = z80_inst_jp_cc_nn, |
|
|
@@ -225,7 +225,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xDC] = z80_inst_call_cc_nn, |
|
|
|
[0xDD] = z80_prefix_index, |
|
|
|
[0xDE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xDF] = z80_inst_unimplemented, // TODO |
|
|
|
[0xDF] = z80_inst_rst_p, |
|
|
|
[0xE0] = z80_inst_ret_cc, |
|
|
|
[0xE1] = z80_inst_pop_qq, |
|
|
|
[0xE2] = z80_inst_jp_cc_nn, |
|
|
@@ -233,7 +233,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xE4] = z80_inst_call_cc_nn, |
|
|
|
[0xE5] = z80_inst_push_qq, |
|
|
|
[0xE6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xE7] = z80_inst_unimplemented, // TODO |
|
|
|
[0xE7] = z80_inst_rst_p, |
|
|
|
[0xE8] = z80_inst_ret_cc, |
|
|
|
[0xE9] = z80_inst_unimplemented, // TODO |
|
|
|
[0xEA] = z80_inst_jp_cc_nn, |
|
|
@@ -241,7 +241,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xEC] = z80_inst_call_cc_nn, |
|
|
|
[0xED] = z80_prefix_extended, |
|
|
|
[0xEE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xEF] = z80_inst_unimplemented, // TODO |
|
|
|
[0xEF] = z80_inst_rst_p, |
|
|
|
[0xF0] = z80_inst_ret_cc, |
|
|
|
[0xF1] = z80_inst_pop_qq, |
|
|
|
[0xF2] = z80_inst_jp_cc_nn, |
|
|
@@ -249,7 +249,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xF4] = z80_inst_call_cc_nn, |
|
|
|
[0xF5] = z80_inst_push_qq, |
|
|
|
[0xF6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xF7] = z80_inst_unimplemented, // TODO |
|
|
|
[0xF7] = z80_inst_rst_p, |
|
|
|
[0xF8] = z80_inst_ret_cc, |
|
|
|
[0xF9] = z80_inst_unimplemented, // TODO |
|
|
|
[0xFA] = z80_inst_jp_cc_nn, |
|
|
@@ -257,7 +257,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xFC] = z80_inst_call_cc_nn, |
|
|
|
[0xFD] = z80_prefix_index, |
|
|
|
[0xFE] = z80_inst_cp_n, |
|
|
|
[0xFF] = z80_inst_unimplemented // TODO |
|
|
|
[0xFF] = z80_inst_rst_p |
|
|
|
}; |
|
|
|
|
|
|
|
static DispatchTable instruction_table_extended = { |
|
|
@@ -330,7 +330,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x42] = z80_inst_unimplemented, // TODO |
|
|
|
[0x43] = z80_inst_unimplemented, // TODO |
|
|
|
[0x44] = z80_inst_unimplemented, // TODO |
|
|
|
[0x45] = z80_inst_unimplemented, // TODO |
|
|
|
[0x45] = z80_inst_retn, |
|
|
|
[0x46] = z80_inst_im, |
|
|
|
[0x47] = z80_inst_unimplemented, // TODO |
|
|
|
[0x48] = z80_inst_in_r_c, |
|
|
@@ -346,7 +346,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x52] = z80_inst_unimplemented, // TODO |
|
|
|
[0x53] = z80_inst_unimplemented, // TODO |
|
|
|
[0x54] = z80_inst_unimplemented, // TODO |
|
|
|
[0x55] = z80_inst_unimplemented, // TODO |
|
|
|
[0x55] = z80_inst_retn, |
|
|
|
[0x56] = z80_inst_im, |
|
|
|
[0x57] = z80_inst_unimplemented, // TODO |
|
|
|
[0x58] = z80_inst_in_r_c, |
|
|
@@ -354,7 +354,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x5A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5D] = z80_inst_retn, |
|
|
|
[0x5E] = z80_inst_im, |
|
|
|
[0x5F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x60] = z80_inst_in_r_c, |
|
|
@@ -362,7 +362,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x62] = z80_inst_unimplemented, // TODO |
|
|
|
[0x63] = z80_inst_unimplemented, // TODO |
|
|
|
[0x64] = z80_inst_unimplemented, // TODO |
|
|
|
[0x65] = z80_inst_unimplemented, // TODO |
|
|
|
[0x65] = z80_inst_retn, |
|
|
|
[0x66] = z80_inst_im, |
|
|
|
[0x67] = z80_inst_unimplemented, // TODO |
|
|
|
[0x68] = z80_inst_in_r_c, |
|
|
@@ -370,7 +370,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x6A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6D] = z80_inst_retn, |
|
|
|
[0x6E] = z80_inst_im, |
|
|
|
[0x6F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x70] = z80_inst_in_r_c, |
|
|
@@ -378,7 +378,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x72] = z80_inst_unimplemented, // TODO |
|
|
|
[0x73] = z80_inst_unimplemented, // TODO |
|
|
|
[0x74] = z80_inst_unimplemented, // TODO |
|
|
|
[0x75] = z80_inst_unimplemented, // TODO |
|
|
|
[0x75] = z80_inst_retn, |
|
|
|
[0x76] = z80_inst_im, |
|
|
|
[0x77] = z80_inst_nop2, |
|
|
|
[0x78] = z80_inst_in_r_c, |
|
|
@@ -386,7 +386,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x7A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7D] = z80_inst_retn, |
|
|
|
[0x7E] = z80_inst_im, |
|
|
|
[0x7F] = z80_inst_nop2, |
|
|
|
[0x80] = z80_inst_unimplemented, // TODO |
|
|
|