|
@@ -186,17 +186,17 @@ static DispatchTable instruction_table = { |
|
|
[0xB5] = z80_inst_unimplemented, // TODO |
|
|
[0xB5] = z80_inst_unimplemented, // TODO |
|
|
[0xB6] = z80_inst_unimplemented, // TODO |
|
|
[0xB6] = z80_inst_unimplemented, // TODO |
|
|
[0xB7] = z80_inst_unimplemented, // TODO |
|
|
[0xB7] = z80_inst_unimplemented, // TODO |
|
|
[0xB8] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
[0xB9] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
[0xBA] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
[0xBB] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
[0xBC] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
[0xBD] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xB8] = z80_inst_cp_r, |
|
|
|
|
|
[0xB9] = z80_inst_cp_r, |
|
|
|
|
|
[0xBA] = z80_inst_cp_r, |
|
|
|
|
|
[0xBB] = z80_inst_cp_r, |
|
|
|
|
|
[0xBC] = z80_inst_cp_r, |
|
|
|
|
|
[0xBD] = z80_inst_cp_r, |
|
|
[0xBE] = z80_inst_unimplemented, // TODO |
|
|
[0xBE] = z80_inst_unimplemented, // TODO |
|
|
[0xBF] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xBF] = z80_inst_cp_r, |
|
|
[0xC0] = z80_inst_unimplemented, // TODO |
|
|
[0xC0] = z80_inst_unimplemented, // TODO |
|
|
[0xC1] = z80_inst_unimplemented, // TODO |
|
|
[0xC1] = z80_inst_unimplemented, // TODO |
|
|
[0xC2] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xC2] = z80_inst_jp_cc_nn, |
|
|
[0xC3] = z80_inst_jp_nn, |
|
|
[0xC3] = z80_inst_jp_nn, |
|
|
[0xC4] = z80_inst_unimplemented, // TODO |
|
|
[0xC4] = z80_inst_unimplemented, // TODO |
|
|
[0xC5] = z80_inst_unimplemented, // TODO |
|
|
[0xC5] = z80_inst_unimplemented, // TODO |
|
@@ -204,7 +204,7 @@ static DispatchTable instruction_table = { |
|
|
[0xC7] = z80_inst_unimplemented, // TODO |
|
|
[0xC7] = z80_inst_unimplemented, // TODO |
|
|
[0xC8] = z80_inst_unimplemented, // TODO |
|
|
[0xC8] = z80_inst_unimplemented, // TODO |
|
|
[0xC9] = z80_inst_unimplemented, // TODO |
|
|
[0xC9] = z80_inst_unimplemented, // TODO |
|
|
[0xCA] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xCA] = z80_inst_jp_cc_nn, |
|
|
[0xCB] = z80_prefix_bits, |
|
|
[0xCB] = z80_prefix_bits, |
|
|
[0xCC] = z80_inst_unimplemented, // TODO |
|
|
[0xCC] = z80_inst_unimplemented, // TODO |
|
|
[0xCD] = z80_inst_unimplemented, // TODO |
|
|
[0xCD] = z80_inst_unimplemented, // TODO |
|
@@ -212,23 +212,23 @@ static DispatchTable instruction_table = { |
|
|
[0xCF] = z80_inst_unimplemented, // TODO |
|
|
[0xCF] = z80_inst_unimplemented, // TODO |
|
|
[0xD0] = z80_inst_unimplemented, // TODO |
|
|
[0xD0] = z80_inst_unimplemented, // TODO |
|
|
[0xD1] = z80_inst_unimplemented, // TODO |
|
|
[0xD1] = z80_inst_unimplemented, // TODO |
|
|
[0xD2] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
[0xD3] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xD2] = z80_inst_jp_cc_nn, |
|
|
|
|
|
[0xD3] = z80_inst_out_n_a, |
|
|
[0xD4] = z80_inst_unimplemented, // TODO |
|
|
[0xD4] = z80_inst_unimplemented, // TODO |
|
|
[0xD5] = z80_inst_unimplemented, // TODO |
|
|
[0xD5] = z80_inst_unimplemented, // TODO |
|
|
[0xD6] = z80_inst_unimplemented, // TODO |
|
|
[0xD6] = z80_inst_unimplemented, // TODO |
|
|
[0xD7] = z80_inst_unimplemented, // TODO |
|
|
[0xD7] = z80_inst_unimplemented, // TODO |
|
|
[0xD8] = z80_inst_unimplemented, // TODO |
|
|
[0xD8] = z80_inst_unimplemented, // TODO |
|
|
[0xD9] = z80_inst_exx, |
|
|
[0xD9] = z80_inst_exx, |
|
|
[0xDA] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
[0xDB] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xDA] = z80_inst_jp_cc_nn, |
|
|
|
|
|
[0xDB] = z80_inst_in_a_n, |
|
|
[0xDC] = z80_inst_unimplemented, // TODO |
|
|
[0xDC] = z80_inst_unimplemented, // TODO |
|
|
[0xDD] = z80_prefix_index, |
|
|
[0xDD] = z80_prefix_index, |
|
|
[0xDE] = z80_inst_unimplemented, // TODO |
|
|
[0xDE] = z80_inst_unimplemented, // TODO |
|
|
[0xDF] = z80_inst_unimplemented, // TODO |
|
|
[0xDF] = z80_inst_unimplemented, // TODO |
|
|
[0xE0] = z80_inst_unimplemented, // TODO |
|
|
[0xE0] = z80_inst_unimplemented, // TODO |
|
|
[0xE1] = z80_inst_unimplemented, // TODO |
|
|
[0xE1] = z80_inst_unimplemented, // TODO |
|
|
[0xE2] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xE2] = z80_inst_jp_cc_nn, |
|
|
[0xE3] = z80_inst_unimplemented, // TODO |
|
|
[0xE3] = z80_inst_unimplemented, // TODO |
|
|
[0xE4] = z80_inst_unimplemented, // TODO |
|
|
[0xE4] = z80_inst_unimplemented, // TODO |
|
|
[0xE5] = z80_inst_unimplemented, // TODO |
|
|
[0xE5] = z80_inst_unimplemented, // TODO |
|
@@ -236,7 +236,7 @@ static DispatchTable instruction_table = { |
|
|
[0xE7] = z80_inst_unimplemented, // TODO |
|
|
[0xE7] = z80_inst_unimplemented, // TODO |
|
|
[0xE8] = z80_inst_unimplemented, // TODO |
|
|
[0xE8] = z80_inst_unimplemented, // TODO |
|
|
[0xE9] = z80_inst_unimplemented, // TODO |
|
|
[0xE9] = z80_inst_unimplemented, // TODO |
|
|
[0xEA] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xEA] = z80_inst_jp_cc_nn, |
|
|
[0xEB] = z80_inst_unimplemented, // TODO |
|
|
[0xEB] = z80_inst_unimplemented, // TODO |
|
|
[0xEC] = z80_inst_unimplemented, // TODO |
|
|
[0xEC] = z80_inst_unimplemented, // TODO |
|
|
[0xED] = z80_prefix_extended, |
|
|
[0xED] = z80_prefix_extended, |
|
@@ -244,7 +244,7 @@ static DispatchTable instruction_table = { |
|
|
[0xEF] = z80_inst_unimplemented, // TODO |
|
|
[0xEF] = z80_inst_unimplemented, // TODO |
|
|
[0xF0] = z80_inst_unimplemented, // TODO |
|
|
[0xF0] = z80_inst_unimplemented, // TODO |
|
|
[0xF1] = z80_inst_unimplemented, // TODO |
|
|
[0xF1] = z80_inst_unimplemented, // TODO |
|
|
[0xF2] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xF2] = z80_inst_jp_cc_nn, |
|
|
[0xF3] = z80_inst_di, |
|
|
[0xF3] = z80_inst_di, |
|
|
[0xF4] = z80_inst_unimplemented, // TODO |
|
|
[0xF4] = z80_inst_unimplemented, // TODO |
|
|
[0xF5] = z80_inst_unimplemented, // TODO |
|
|
[0xF5] = z80_inst_unimplemented, // TODO |
|
@@ -252,11 +252,11 @@ static DispatchTable instruction_table = { |
|
|
[0xF7] = z80_inst_unimplemented, // TODO |
|
|
[0xF7] = z80_inst_unimplemented, // TODO |
|
|
[0xF8] = z80_inst_unimplemented, // TODO |
|
|
[0xF8] = z80_inst_unimplemented, // TODO |
|
|
[0xF9] = z80_inst_unimplemented, // TODO |
|
|
[0xF9] = z80_inst_unimplemented, // TODO |
|
|
[0xFA] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xFA] = z80_inst_jp_cc_nn, |
|
|
[0xFB] = z80_inst_ei, |
|
|
[0xFB] = z80_inst_ei, |
|
|
[0xFC] = z80_inst_unimplemented, // TODO |
|
|
[0xFC] = z80_inst_unimplemented, // TODO |
|
|
[0xFD] = z80_prefix_index, |
|
|
[0xFD] = z80_prefix_index, |
|
|
[0xFE] = z80_inst_unimplemented, // TODO |
|
|
|
|
|
|
|
|
[0xFE] = z80_inst_cp_n, |
|
|
[0xFF] = z80_inst_unimplemented // TODO |
|
|
[0xFF] = z80_inst_unimplemented // TODO |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|