mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-09-27 04:54:42 +00:00
Fix stbu instruction.
This commit is contained in:
parent
df5328c53d
commit
57095ee3a8
@ -1885,11 +1885,12 @@ void ppc_stbx(){
|
||||
|
||||
void ppc_stbu(){
|
||||
ppc_grab_regssa();
|
||||
grab_d = (uint32_t)((int32_t)((int16_t)(ppc_cur_instruction & 0xFFFF)));
|
||||
if (reg_a != 0){
|
||||
ppc_effective_address = (reg_a == 0)?grab_d:(ppc_result_a + grab_d);
|
||||
address_quickinsert_translate(ppc_result_d, ppc_effective_address, 1);
|
||||
if (reg_a == 0) {
|
||||
ppc_exception_handler(Except_Type::EXC_PROGRAM, 0x20000);
|
||||
}
|
||||
ppc_effective_address = ppc_result_a + (int32_t)((int16_t)(ppc_cur_instruction & 0xFFFF));
|
||||
address_quickinsert_translate(ppc_result_d, ppc_effective_address, 1);
|
||||
ppc_state.ppc_gpr[reg_a] = ppc_effective_address;
|
||||
}
|
||||
|
||||
void ppc_stbux(){
|
||||
|
Loading…
Reference in New Issue
Block a user