Fix memset/bdnzf compilation error.

This commit is contained in:
Skyth 2024-09-15 20:30:56 +03:00
parent 8d4d99e644
commit 7e6b92ac6e
2 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,7 @@ int main()
case PPC_INST_BDNZF:
// NOTE: assuming eq here as a shortcut because all the instructions in the game do that
println("\tif (--ctx.ctr != 0 && !ctx.cr{}.eq) goto loc_{:X};", insn.operands[0], insn.operands[2]);
println("\tif (--ctx.ctr != 0 && !ctx.cr{}.eq) goto loc_{:X};", insn.operands[0] / 4, insn.operands[1]);
break;
case PPC_INST_BEQ:

View File

@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <cmath>
#ifdef __clang__