Threads of Fate - psxinterpreter.c
- divide by zero handling - fixes Rue's quest house bug - only works with interpreter git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@59193 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
parent
047ebc15ac
commit
80b1d885d1
|
@ -468,6 +468,10 @@ void psxDIV() {
|
|||
_i32(_rLo_) = _i32(_rRs_) / _i32(_rRt_);
|
||||
_i32(_rHi_) = _i32(_rRs_) % _i32(_rRt_);
|
||||
}
|
||||
else {
|
||||
_i32(_rLo_) = 0xffffffff;
|
||||
_i32(_rHi_) = _i32(_rRs_);
|
||||
}
|
||||
}
|
||||
|
||||
void psxDIVU() {
|
||||
|
@ -475,6 +479,10 @@ void psxDIVU() {
|
|||
_rLo_ = _rRs_ / _rRt_;
|
||||
_rHi_ = _rRs_ % _rRt_;
|
||||
}
|
||||
else {
|
||||
_rLo_ = 0xffffffff;
|
||||
_rHi_ = _rRs_;
|
||||
}
|
||||
}
|
||||
|
||||
void psxMULT() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user