mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-15 09:27:27 +00:00
Removed redundant variable
Slight clean-up for lswi and lswx
This commit is contained in:
@@ -2001,7 +2001,6 @@ void dppc_interpreter::ppc_lswi() {
|
|||||||
ppc_effective_address = reg_a ? ppc_result_a : 0;
|
ppc_effective_address = reg_a ? ppc_result_a : 0;
|
||||||
grab_inb = (ppc_cur_instruction >> 11) & 0x1F;
|
grab_inb = (ppc_cur_instruction >> 11) & 0x1F;
|
||||||
grab_inb = grab_inb ? grab_inb : 32;
|
grab_inb = grab_inb ? grab_inb : 32;
|
||||||
uint32_t stringed_word = 0;
|
|
||||||
|
|
||||||
while (grab_inb > 0) {
|
while (grab_inb > 0) {
|
||||||
switch (grab_inb) {
|
switch (grab_inb) {
|
||||||
@@ -2014,9 +2013,8 @@ void dppc_interpreter::ppc_lswi() {
|
|||||||
grab_inb = 0;
|
grab_inb = 0;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
stringed_word = mmu_read_vmem<uint16_t>(ppc_effective_address) << 16;
|
ppc_state.gpr[reg_d] = mmu_read_vmem<uint16_t>(ppc_effective_address) << 16;
|
||||||
stringed_word += mmu_read_vmem<uint8_t>(ppc_effective_address + 2) << 8;
|
ppc_state.gpr[reg_d] += mmu_read_vmem<uint8_t>(ppc_effective_address + 2) << 8;
|
||||||
ppc_state.gpr[reg_d] = stringed_word;
|
|
||||||
grab_inb = 0;
|
grab_inb = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -2044,7 +2042,6 @@ void dppc_interpreter::ppc_lswx() {
|
|||||||
|
|
||||||
ppc_effective_address = reg_a ? (ppc_result_a + ppc_result_b) : ppc_result_b;
|
ppc_effective_address = reg_a ? (ppc_result_a + ppc_result_b) : ppc_result_b;
|
||||||
grab_inb = ppc_state.spr[SPR::XER] & 0x7F;
|
grab_inb = ppc_state.spr[SPR::XER] & 0x7F;
|
||||||
uint32_t stringed_word = 0;
|
|
||||||
|
|
||||||
while (grab_inb > 0) {
|
while (grab_inb > 0) {
|
||||||
switch (grab_inb) {
|
switch (grab_inb) {
|
||||||
@@ -2057,9 +2054,8 @@ void dppc_interpreter::ppc_lswx() {
|
|||||||
grab_inb = 0;
|
grab_inb = 0;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
stringed_word = mmu_read_vmem<uint16_t>(ppc_effective_address) << 16;
|
ppc_state.gpr[reg_d] = mmu_read_vmem<uint16_t>(ppc_effective_address) << 16;
|
||||||
stringed_word += mmu_read_vmem<uint8_t>(ppc_effective_address + 2) << 8;
|
ppc_state.gpr[reg_d] += mmu_read_vmem<uint8_t>(ppc_effective_address + 2) << 8;
|
||||||
ppc_state.gpr[reg_d] = stringed_word;
|
|
||||||
grab_inb = 0;
|
grab_inb = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user