|
|
@@ -26,7 +26,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0x15] = z80_inst_unimplemented, // TODO |
|
|
|
[0x16] = z80_inst_ld_r_n, |
|
|
|
[0x17] = z80_inst_unimplemented, // TODO |
|
|
|
[0x18] = z80_inst_unimplemented, // TODO |
|
|
|
[0x18] = z80_inst_jr_e, |
|
|
|
[0x19] = z80_inst_unimplemented, // TODO |
|
|
|
[0x1A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x1B] = z80_inst_unimplemented, // TODO |
|
|
@@ -34,7 +34,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0x1D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x1E] = z80_inst_ld_r_n, |
|
|
|
[0x1F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x20] = z80_inst_unimplemented, // TODO |
|
|
|
[0x20] = z80_inst_jr_cc_e, |
|
|
|
[0x21] = z80_inst_ld_dd_nn, |
|
|
|
[0x22] = z80_inst_unimplemented, // TODO |
|
|
|
[0x23] = z80_inst_inc_ss, |
|
|
@@ -42,7 +42,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0x25] = z80_inst_unimplemented, // TODO |
|
|
|
[0x26] = z80_inst_ld_r_n, |
|
|
|
[0x27] = z80_inst_unimplemented, // TODO |
|
|
|
[0x28] = z80_inst_unimplemented, // TODO |
|
|
|
[0x28] = z80_inst_jr_cc_e, |
|
|
|
[0x29] = z80_inst_unimplemented, // TODO |
|
|
|
[0x2A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x2B] = z80_inst_unimplemented, // TODO |
|
|
@@ -50,15 +50,15 @@ static DispatchTable instruction_table = { |
|
|
|
[0x2D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x2E] = z80_inst_ld_r_n, |
|
|
|
[0x2F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x30] = z80_inst_unimplemented, // TODO |
|
|
|
[0x30] = z80_inst_jr_cc_e, |
|
|
|
[0x31] = z80_inst_ld_dd_nn, |
|
|
|
[0x32] = z80_inst_ld_nn_a, |
|
|
|
[0x33] = z80_inst_inc_ss, |
|
|
|
[0x34] = z80_inst_unimplemented, // TODO |
|
|
|
[0x35] = z80_inst_unimplemented, // TODO |
|
|
|
[0x36] = z80_inst_unimplemented, // TODO |
|
|
|
[0x36] = z80_inst_ld_hl_n, |
|
|
|
[0x37] = z80_inst_unimplemented, // TODO |
|
|
|
[0x38] = z80_inst_unimplemented, // TODO |
|
|
|
[0x38] = z80_inst_jr_cc_e, |
|
|
|
[0x39] = z80_inst_unimplemented, // TODO |
|
|
|
[0x3A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x3B] = z80_inst_unimplemented, // TODO |
|
|
@@ -198,7 +198,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xC1] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC2] = z80_inst_jp_cc_nn, |
|
|
|
[0xC3] = z80_inst_jp_nn, |
|
|
|
[0xC4] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC4] = z80_inst_call_cc_nn, |
|
|
|
[0xC5] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC7] = z80_inst_unimplemented, // TODO |
|
|
@@ -206,15 +206,15 @@ static DispatchTable instruction_table = { |
|
|
|
[0xC9] = z80_inst_unimplemented, // TODO |
|
|
|
[0xCA] = z80_inst_jp_cc_nn, |
|
|
|
[0xCB] = z80_prefix_bits, |
|
|
|
[0xCC] = z80_inst_unimplemented, // TODO |
|
|
|
[0xCD] = z80_inst_unimplemented, // TODO |
|
|
|
[0xCC] = z80_inst_call_cc_nn, |
|
|
|
[0xCD] = z80_inst_call_nn, |
|
|
|
[0xCE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xCF] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD0] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD1] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD2] = z80_inst_jp_cc_nn, |
|
|
|
[0xD3] = z80_inst_out_n_a, |
|
|
|
[0xD4] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD4] = z80_inst_call_cc_nn, |
|
|
|
[0xD5] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xD7] = z80_inst_unimplemented, // TODO |
|
|
@@ -222,7 +222,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xD9] = z80_inst_exx, |
|
|
|
[0xDA] = z80_inst_jp_cc_nn, |
|
|
|
[0xDB] = z80_inst_in_a_n, |
|
|
|
[0xDC] = z80_inst_unimplemented, // TODO |
|
|
|
[0xDC] = z80_inst_call_cc_nn, |
|
|
|
[0xDD] = z80_prefix_index, |
|
|
|
[0xDE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xDF] = z80_inst_unimplemented, // TODO |
|
|
@@ -230,7 +230,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xE1] = z80_inst_unimplemented, // TODO |
|
|
|
[0xE2] = z80_inst_jp_cc_nn, |
|
|
|
[0xE3] = z80_inst_unimplemented, // TODO |
|
|
|
[0xE4] = z80_inst_unimplemented, // TODO |
|
|
|
[0xE4] = z80_inst_call_cc_nn, |
|
|
|
[0xE5] = z80_inst_unimplemented, // TODO |
|
|
|
[0xE6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xE7] = z80_inst_unimplemented, // TODO |
|
|
@@ -238,7 +238,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xE9] = z80_inst_unimplemented, // TODO |
|
|
|
[0xEA] = z80_inst_jp_cc_nn, |
|
|
|
[0xEB] = z80_inst_unimplemented, // TODO |
|
|
|
[0xEC] = z80_inst_unimplemented, // TODO |
|
|
|
[0xEC] = z80_inst_call_cc_nn, |
|
|
|
[0xED] = z80_prefix_extended, |
|
|
|
[0xEE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xEF] = z80_inst_unimplemented, // TODO |
|
|
@@ -246,7 +246,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xF1] = z80_inst_unimplemented, // TODO |
|
|
|
[0xF2] = z80_inst_jp_cc_nn, |
|
|
|
[0xF3] = z80_inst_di, |
|
|
|
[0xF4] = z80_inst_unimplemented, // TODO |
|
|
|
[0xF4] = z80_inst_call_cc_nn, |
|
|
|
[0xF5] = z80_inst_unimplemented, // TODO |
|
|
|
[0xF6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xF7] = z80_inst_unimplemented, // TODO |
|
|
@@ -254,7 +254,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0xF9] = z80_inst_unimplemented, // TODO |
|
|
|
[0xFA] = z80_inst_jp_cc_nn, |
|
|
|
[0xFB] = z80_inst_ei, |
|
|
|
[0xFC] = z80_inst_unimplemented, // TODO |
|
|
|
[0xFC] = z80_inst_call_cc_nn, |
|
|
|
[0xFD] = z80_prefix_index, |
|
|
|
[0xFE] = z80_inst_cp_n, |
|
|
|
[0xFF] = z80_inst_unimplemented // TODO |
|
|
|