Another revert

This affects Virtus VR - With the lmw checks, the opening sign doesn't display and the intro crashes sooner
This commit is contained in:
dingusdev 2024-01-07 17:45:05 -07:00
parent c6af1e31fe
commit a0b1d6394a

View File

@ -2035,7 +2035,8 @@ void dppc_interpreter::ppc_lwzux() {
ppc_result_a = ppc_effective_address;
ppc_store_result_regd();
ppc_store_result_rega();
} else {
}
else {
ppc_exception_handler(Except_Type::EXC_PROGRAM, Exc_Cause::ILLEGAL_OP);
}
}
@ -2058,8 +2059,7 @@ void dppc_interpreter::ppc_lmw() {
num_int_loads++;
#endif
ppc_grab_regsda();
ppc_effective_address = (int32_t)((int16_t)(ppc_cur_instruction & 0xFFFF));
if ((reg_d > reg_a) || reg_a != 0) {
ppc_effective_address = int32_t(int16_t(ppc_cur_instruction & 0xFFFF));
ppc_effective_address += (reg_a > 0) ? ppc_result_a : 0;
// How many words to load in memory - using a do-while for this
do {
@ -2069,10 +2069,6 @@ void dppc_interpreter::ppc_lmw() {
reg_d++;
} while (reg_d < 32);
}
else {
ppc_exception_handler(Except_Type::EXC_PROGRAM, Exc_Cause::ILLEGAL_OP);
}
}
void dppc_interpreter::ppc_lswi() {
#ifdef CPU_PROFILING