Cleaning up throw values around division + faults.

This commit is contained in:
Brad Nelson
2023-01-22 15:08:14 -08:00
parent cfd70d6712
commit 40400b873e
9 changed files with 165 additions and 14 deletions

View File

@ -17,6 +17,7 @@
#define JMPW continue decode
#define SSMOD_FUNC SSMOD_FUNC
#define WEB_DUMP
#define COMMA COMMA
#include "common/tier0_opcodes.h"

View File

@ -192,10 +192,6 @@ function SSMOD(sp) {
a *= b;
var x = Math.floor(a / c);
var m = a - x * c;
if (m < 0) {
x--;
m += c;
}
i32[(sp - 8)>>2] = m;
i32[sp>>2] = x;
}