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: case PPC_INST_BDNZF:
// NOTE: assuming eq here as a shortcut because all the instructions in the game do that // 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; break;
case PPC_INST_BEQ: case PPC_INST_BEQ:

View File

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