notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gte: Fix gteH division and sign extension (from PCSX4ALL)
[pcsx_rearmed.git]
/
deps
/
lightrec
/
interpreter.c
diff --git
a/deps/lightrec/interpreter.c
b/deps/lightrec/interpreter.c
index
f586685
..
ff609a4
100644
(file)
--- a/
deps/lightrec/interpreter.c
+++ b/
deps/lightrec/interpreter.c
@@
-801,6
+801,9
@@
static u32 int_special_DIV(struct interpreter *inter)
if (rt == 0) {
hi = rs;
lo = (rs < 0) * 2 - 1;
if (rt == 0) {
hi = rs;
lo = (rs < 0) * 2 - 1;
+ } else if ((rs == 0x80000000) && (rt == 0xFFFFFFFF)) {
+ lo = rs;
+ hi = 0;
} else {
lo = rs / rt;
hi = rs % rt;
} else {
lo = rs / rt;
hi = rs % rt;