misc: handle r0 edge-case when loading value (#172)

This commit is contained in:
Tyler Wilding 2022-12-15 00:30:06 -05:00 committed by GitHub
parent f2ffa180f9
commit 121d159c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,6 +279,13 @@ async function genTypeFields() {
} else {
loadInstr = line.trim().split(" ")[0];
}
} else if (line.includes("r0")) {
offset = 0;
if (line.includes("daddiu")) {
loadInstr = "daddiu";
} else {
loadInstr = line.trim().split(" ")[0];
}
} else {
return;
}