|
|
@@ -55,7 +55,7 @@ static DispatchTable instruction_table = { |
|
|
|
[0x32] = z80_inst_ld_nn_a, |
|
|
|
[0x33] = z80_inst_inc_ss, |
|
|
|
[0x34] = z80_inst_inc_hl, |
|
|
|
[0x35] = z80_inst_unimplemented, // TODO |
|
|
|
[0x35] = z80_inst_dec_hl, |
|
|
|
[0x36] = z80_inst_ld_hl_n, |
|
|
|
[0x37] = z80_inst_unimplemented, // TODO |
|
|
|
[0x38] = z80_inst_jr_cc_e, |
|
|
@@ -328,7 +328,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x40] = z80_inst_in_r_c, |
|
|
|
[0x41] = z80_inst_out_c_r, |
|
|
|
[0x42] = z80_inst_sbc_hl_ss, |
|
|
|
[0x43] = z80_inst_unimplemented, // TODO |
|
|
|
[0x43] = z80_inst_ld_nn_dd, |
|
|
|
[0x44] = z80_inst_unimplemented, // TODO |
|
|
|
[0x45] = z80_inst_retn, |
|
|
|
[0x46] = z80_inst_im, |
|
|
@@ -344,7 +344,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x50] = z80_inst_in_r_c, |
|
|
|
[0x51] = z80_inst_out_c_r, |
|
|
|
[0x52] = z80_inst_sbc_hl_ss, |
|
|
|
[0x53] = z80_inst_unimplemented, // TODO |
|
|
|
[0x53] = z80_inst_ld_nn_dd, |
|
|
|
[0x54] = z80_inst_unimplemented, // TODO |
|
|
|
[0x55] = z80_inst_retn, |
|
|
|
[0x56] = z80_inst_im, |
|
|
@@ -360,7 +360,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x60] = z80_inst_in_r_c, |
|
|
|
[0x61] = z80_inst_out_c_r, |
|
|
|
[0x62] = z80_inst_sbc_hl_ss, |
|
|
|
[0x63] = z80_inst_unimplemented, // TODO |
|
|
|
[0x63] = z80_inst_ld_nn_dd, |
|
|
|
[0x64] = z80_inst_unimplemented, // TODO |
|
|
|
[0x65] = z80_inst_retn, |
|
|
|
[0x66] = z80_inst_im, |
|
|
@@ -376,7 +376,7 @@ static DispatchTable instruction_table_extended = { |
|
|
|
[0x70] = z80_inst_in_r_c, |
|
|
|
[0x71] = z80_inst_out_c_r, |
|
|
|
[0x72] = z80_inst_sbc_hl_ss, |
|
|
|
[0x73] = z80_inst_unimplemented, // TODO |
|
|
|
[0x73] = z80_inst_ld_nn_dd, |
|
|
|
[0x74] = z80_inst_unimplemented, // TODO |
|
|
|
[0x75] = z80_inst_retn, |
|
|
|
[0x76] = z80_inst_im, |
|
|
@@ -654,7 +654,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0x83] = z80_inst_unimplemented, // TODO |
|
|
|
[0x84] = z80_inst_unimplemented, // TODO |
|
|
|
[0x85] = z80_inst_unimplemented, // TODO |
|
|
|
[0x86] = z80_inst_unimplemented, // TODO |
|
|
|
[0x86] = z80_inst_res_b_hl, |
|
|
|
[0x87] = z80_inst_unimplemented, // TODO |
|
|
|
[0x88] = z80_inst_unimplemented, // TODO |
|
|
|
[0x89] = z80_inst_unimplemented, // TODO |
|
|
@@ -662,7 +662,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0x8B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x8C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x8D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x8E] = z80_inst_unimplemented, // TODO |
|
|
|
[0x8E] = z80_inst_res_b_hl, |
|
|
|
[0x8F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x90] = z80_inst_unimplemented, // TODO |
|
|
|
[0x91] = z80_inst_unimplemented, // TODO |
|
|
@@ -670,7 +670,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0x93] = z80_inst_unimplemented, // TODO |
|
|
|
[0x94] = z80_inst_unimplemented, // TODO |
|
|
|
[0x95] = z80_inst_unimplemented, // TODO |
|
|
|
[0x96] = z80_inst_unimplemented, // TODO |
|
|
|
[0x96] = z80_inst_res_b_hl, |
|
|
|
[0x97] = z80_inst_unimplemented, // TODO |
|
|
|
[0x98] = z80_inst_unimplemented, // TODO |
|
|
|
[0x99] = z80_inst_unimplemented, // TODO |
|
|
@@ -678,7 +678,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0x9B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x9C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x9D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x9E] = z80_inst_unimplemented, // TODO |
|
|
|
[0x9E] = z80_inst_res_b_hl, |
|
|
|
[0x9F] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA0] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA1] = z80_inst_unimplemented, // TODO |
|
|
@@ -686,7 +686,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0xA3] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA4] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA5] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA6] = z80_inst_res_b_hl, |
|
|
|
[0xA7] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA8] = z80_inst_unimplemented, // TODO |
|
|
|
[0xA9] = z80_inst_unimplemented, // TODO |
|
|
@@ -694,7 +694,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0xAB] = z80_inst_unimplemented, // TODO |
|
|
|
[0xAC] = z80_inst_unimplemented, // TODO |
|
|
|
[0xAD] = z80_inst_unimplemented, // TODO |
|
|
|
[0xAE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xAE] = z80_inst_res_b_hl, |
|
|
|
[0xAF] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB0] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB1] = z80_inst_unimplemented, // TODO |
|
|
@@ -702,7 +702,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0xB3] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB4] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB5] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB6] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB6] = z80_inst_res_b_hl, |
|
|
|
[0xB7] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB8] = z80_inst_unimplemented, // TODO |
|
|
|
[0xB9] = z80_inst_unimplemented, // TODO |
|
|
@@ -710,7 +710,7 @@ static DispatchTable instruction_table_bits = { |
|
|
|
[0xBB] = z80_inst_unimplemented, // TODO |
|
|
|
[0xBC] = z80_inst_unimplemented, // TODO |
|
|
|
[0xBD] = z80_inst_unimplemented, // TODO |
|
|
|
[0xBE] = z80_inst_unimplemented, // TODO |
|
|
|
[0xBE] = z80_inst_res_b_hl, |
|
|
|
[0xBF] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC0] = z80_inst_unimplemented, // TODO |
|
|
|
[0xC1] = z80_inst_unimplemented, // TODO |
|
|
@@ -1102,70 +1102,70 @@ static DispatchTable instruction_table_index_bits = { |
|
|
|
[0x3D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x3E] = z80_inst_unimplemented, // TODO |
|
|
|
[0x3F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x40] = z80_inst_unimplemented, // TODO |
|
|
|
[0x41] = z80_inst_unimplemented, // TODO |
|
|
|
[0x42] = z80_inst_unimplemented, // TODO |
|
|
|
[0x43] = z80_inst_unimplemented, // TODO |
|
|
|
[0x44] = z80_inst_unimplemented, // TODO |
|
|
|
[0x45] = z80_inst_unimplemented, // TODO |
|
|
|
[0x46] = z80_inst_unimplemented, // TODO |
|
|
|
[0x47] = z80_inst_unimplemented, // TODO |
|
|
|
[0x48] = z80_inst_unimplemented, // TODO |
|
|
|
[0x49] = z80_inst_unimplemented, // TODO |
|
|
|
[0x4A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x4B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x4C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x4D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x4E] = z80_inst_unimplemented, // TODO |
|
|
|
[0x4F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x50] = z80_inst_unimplemented, // TODO |
|
|
|
[0x51] = z80_inst_unimplemented, // TODO |
|
|
|
[0x52] = z80_inst_unimplemented, // TODO |
|
|
|
[0x53] = z80_inst_unimplemented, // TODO |
|
|
|
[0x54] = z80_inst_unimplemented, // TODO |
|
|
|
[0x55] = z80_inst_unimplemented, // TODO |
|
|
|
[0x56] = z80_inst_unimplemented, // TODO |
|
|
|
[0x57] = z80_inst_unimplemented, // TODO |
|
|
|
[0x58] = z80_inst_unimplemented, // TODO |
|
|
|
[0x59] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5E] = z80_inst_unimplemented, // TODO |
|
|
|
[0x5F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x60] = z80_inst_unimplemented, // TODO |
|
|
|
[0x61] = z80_inst_unimplemented, // TODO |
|
|
|
[0x62] = z80_inst_unimplemented, // TODO |
|
|
|
[0x63] = z80_inst_unimplemented, // TODO |
|
|
|
[0x64] = z80_inst_unimplemented, // TODO |
|
|
|
[0x65] = z80_inst_unimplemented, // TODO |
|
|
|
[0x66] = z80_inst_unimplemented, // TODO |
|
|
|
[0x67] = z80_inst_unimplemented, // TODO |
|
|
|
[0x68] = z80_inst_unimplemented, // TODO |
|
|
|
[0x69] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6E] = z80_inst_unimplemented, // TODO |
|
|
|
[0x6F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x70] = z80_inst_unimplemented, // TODO |
|
|
|
[0x71] = z80_inst_unimplemented, // TODO |
|
|
|
[0x72] = z80_inst_unimplemented, // TODO |
|
|
|
[0x73] = z80_inst_unimplemented, // TODO |
|
|
|
[0x74] = z80_inst_unimplemented, // TODO |
|
|
|
[0x75] = z80_inst_unimplemented, // TODO |
|
|
|
[0x76] = z80_inst_unimplemented, // TODO |
|
|
|
[0x77] = z80_inst_unimplemented, // TODO |
|
|
|
[0x78] = z80_inst_unimplemented, // TODO |
|
|
|
[0x79] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7A] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7B] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7C] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7D] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7E] = z80_inst_unimplemented, // TODO |
|
|
|
[0x7F] = z80_inst_unimplemented, // TODO |
|
|
|
[0x40] = z80_inst_bit_b_ixy, |
|
|
|
[0x41] = z80_inst_bit_b_ixy, |
|
|
|
[0x42] = z80_inst_bit_b_ixy, |
|
|
|
[0x43] = z80_inst_bit_b_ixy, |
|
|
|
[0x44] = z80_inst_bit_b_ixy, |
|
|
|
[0x45] = z80_inst_bit_b_ixy, |
|
|
|
[0x46] = z80_inst_bit_b_ixy, |
|
|
|
[0x47] = z80_inst_bit_b_ixy, |
|
|
|
[0x48] = z80_inst_bit_b_ixy, |
|
|
|
[0x49] = z80_inst_bit_b_ixy, |
|
|
|
[0x4A] = z80_inst_bit_b_ixy, |
|
|
|
[0x4B] = z80_inst_bit_b_ixy, |
|
|
|
[0x4C] = z80_inst_bit_b_ixy, |
|
|
|
[0x4D] = z80_inst_bit_b_ixy, |
|
|
|
[0x4E] = z80_inst_bit_b_ixy, |
|
|
|
[0x4F] = z80_inst_bit_b_ixy, |
|
|
|
[0x50] = z80_inst_bit_b_ixy, |
|
|
|
[0x51] = z80_inst_bit_b_ixy, |
|
|
|
[0x52] = z80_inst_bit_b_ixy, |
|
|
|
[0x53] = z80_inst_bit_b_ixy, |
|
|
|
[0x54] = z80_inst_bit_b_ixy, |
|
|
|
[0x55] = z80_inst_bit_b_ixy, |
|
|
|
[0x56] = z80_inst_bit_b_ixy, |
|
|
|
[0x57] = z80_inst_bit_b_ixy, |
|
|
|
[0x58] = z80_inst_bit_b_ixy, |
|
|
|
[0x59] = z80_inst_bit_b_ixy, |
|
|
|
[0x5A] = z80_inst_bit_b_ixy, |
|
|
|
[0x5B] = z80_inst_bit_b_ixy, |
|
|
|
[0x5C] = z80_inst_bit_b_ixy, |
|
|
|
[0x5D] = z80_inst_bit_b_ixy, |
|
|
|
[0x5E] = z80_inst_bit_b_ixy, |
|
|
|
[0x5F] = z80_inst_bit_b_ixy, |
|
|
|
[0x60] = z80_inst_bit_b_ixy, |
|
|
|
[0x61] = z80_inst_bit_b_ixy, |
|
|
|
[0x62] = z80_inst_bit_b_ixy, |
|
|
|
[0x63] = z80_inst_bit_b_ixy, |
|
|
|
[0x64] = z80_inst_bit_b_ixy, |
|
|
|
[0x65] = z80_inst_bit_b_ixy, |
|
|
|
[0x66] = z80_inst_bit_b_ixy, |
|
|
|
[0x67] = z80_inst_bit_b_ixy, |
|
|
|
[0x68] = z80_inst_bit_b_ixy, |
|
|
|
[0x69] = z80_inst_bit_b_ixy, |
|
|
|
[0x6A] = z80_inst_bit_b_ixy, |
|
|
|
[0x6B] = z80_inst_bit_b_ixy, |
|
|
|
[0x6C] = z80_inst_bit_b_ixy, |
|
|
|
[0x6D] = z80_inst_bit_b_ixy, |
|
|
|
[0x6E] = z80_inst_bit_b_ixy, |
|
|
|
[0x6F] = z80_inst_bit_b_ixy, |
|
|
|
[0x70] = z80_inst_bit_b_ixy, |
|
|
|
[0x71] = z80_inst_bit_b_ixy, |
|
|
|
[0x72] = z80_inst_bit_b_ixy, |
|
|
|
[0x73] = z80_inst_bit_b_ixy, |
|
|
|
[0x74] = z80_inst_bit_b_ixy, |
|
|
|
[0x75] = z80_inst_bit_b_ixy, |
|
|
|
[0x76] = z80_inst_bit_b_ixy, |
|
|
|
[0x77] = z80_inst_bit_b_ixy, |
|
|
|
[0x78] = z80_inst_bit_b_ixy, |
|
|
|
[0x79] = z80_inst_bit_b_ixy, |
|
|
|
[0x7A] = z80_inst_bit_b_ixy, |
|
|
|
[0x7B] = z80_inst_bit_b_ixy, |
|
|
|
[0x7C] = z80_inst_bit_b_ixy, |
|
|
|
[0x7D] = z80_inst_bit_b_ixy, |
|
|
|
[0x7E] = z80_inst_bit_b_ixy, |
|
|
|
[0x7F] = z80_inst_bit_b_ixy, |
|
|
|
[0x80] = z80_inst_unimplemented, // TODO |
|
|
|
[0x81] = z80_inst_unimplemented, // TODO |
|
|
|
[0x82] = z80_inst_unimplemented, // TODO |
|
|
|