mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-10 13:29:38 +00:00
Simplify initialization of ppc_cur_instruction.
This commit is contained in:
parent
2417204b5f
commit
c89d3545cd
@ -54,7 +54,6 @@ void execute_single_instr()
|
||||
ppc_state.ppc_pc += 4;
|
||||
ppc_tbr_update();
|
||||
}
|
||||
ppc_cur_instruction = 0;
|
||||
}
|
||||
|
||||
void execute_until(uint32_t goal_addr)
|
||||
|
4
main.cpp
4
main.cpp
@ -358,7 +358,6 @@ void execute_interpreter(){
|
||||
ppc_state.ppc_pc += 4;
|
||||
ppc_tbr_update();
|
||||
}
|
||||
ppc_cur_instruction = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -775,7 +774,6 @@ int main(int argc, char **argv)
|
||||
ppc_state.ppc_pc += 4;
|
||||
ppc_tbr_update();
|
||||
}
|
||||
ppc_cur_instruction = 0;
|
||||
}
|
||||
}
|
||||
else if ((checker=="stepp")|(checker=="/stepp")|(checker=="-stepp")){
|
||||
@ -804,7 +802,6 @@ int main(int argc, char **argv)
|
||||
ppc_state.ppc_pc += 4;
|
||||
ppc_tbr_update();
|
||||
}
|
||||
ppc_cur_instruction = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -847,7 +844,6 @@ int main(int argc, char **argv)
|
||||
ppc_state.ppc_pc += 4;
|
||||
ppc_tbr_update();
|
||||
}
|
||||
ppc_cur_instruction = 0;
|
||||
}
|
||||
}
|
||||
} else if (checker == "debugger") {
|
||||
|
@ -109,7 +109,7 @@ void msr_status_update(){
|
||||
}
|
||||
|
||||
void ppc_set_cur_instruction(uint32_t mem_index){
|
||||
ppc_cur_instruction += (grab_macmem_ptr[mem_index]) << 24;
|
||||
ppc_cur_instruction = (grab_macmem_ptr[mem_index]) << 24;
|
||||
++mem_index;
|
||||
ppc_cur_instruction += (grab_macmem_ptr[mem_index]) << 16;
|
||||
++mem_index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user