diff --git a/cpu/ppc/ppcopcodes.cpp b/cpu/ppc/ppcopcodes.cpp index fe75e50..925a16b 100644 --- a/cpu/ppc/ppcopcodes.cpp +++ b/cpu/ppc/ppcopcodes.cpp @@ -127,7 +127,7 @@ template void dppc_interpreter::ppc_add() { ppc_grab_regsdab(ppc_cur_instruction); uint32_t ppc_result_d = ppc_result_a + ppc_result_b; - + if (carry) ppc_carry(ppc_result_a, ppc_result_d); if (ov) @@ -528,7 +528,7 @@ void dppc_interpreter::ppc_mulli() { template void dppc_interpreter::ppc_divw() { - uint32_t ppc_result_d = 0; + uint32_t ppc_result_d; ppc_grab_regsdab(ppc_cur_instruction); if (!ppc_result_b) { /* handle the "anything / 0" case */ @@ -564,7 +564,7 @@ template void dppc_interpreter::ppc_divw(); template void dppc_interpreter::ppc_divwu() { - uint32_t ppc_result_d = 0; + uint32_t ppc_result_d; ppc_grab_regsdab(ppc_cur_instruction); if (!ppc_result_b) { /* division by zero */ @@ -1597,7 +1597,6 @@ void dppc_interpreter::ppc_lzx() { #endif ppc_grab_regsdab(ppc_cur_instruction); ppc_effective_address = ppc_result_b + (reg_a ? ppc_result_a : 0); - // ppc_result_d = mem_grab_byte(ppc_effective_address); uint32_t ppc_result_d = mmu_read_vmem(ppc_effective_address); ppc_store_iresult_reg(reg_d, ppc_result_d); }