Implement dbnzf

This commit is contained in:
CRACKbomber 2025-06-27 19:47:48 -04:00
parent 0bf4d36532
commit 03a04bcf78

View file

@ -685,6 +685,12 @@ bool Recompiler::Recompile(
println("\tif ({}.u32 != 0 && !{}.eq) goto loc_{:X};", ctr(), cr(insn.operands[0] / 4), insn.operands[1]); println("\tif ({}.u32 != 0 && !{}.eq) goto loc_{:X};", ctr(), cr(insn.operands[0] / 4), insn.operands[1]);
break; break;
case PPC_INST_BDNZT:
// NOTE(crack): Same note as BDNZF but true instead of false
println("\t--{}.u64;", ctr());
println("\tif ({}.u32 != 0 && {}.eq) goto loc_{:X};", ctr(), cr(insn.operands[0] / 4), insn.operands[1]);
break;
case PPC_INST_BEQ: case PPC_INST_BEQ:
printConditionalBranch(false, "eq"); printConditionalBranch(false, "eq");
break; break;