From 03a04bcf78a46df15b7efdf0bdf46c510161aa51 Mon Sep 17 00:00:00 2001 From: CRACKbomber <1568512+CRACKbomber@users.noreply.github.com> Date: Fri, 27 Jun 2025 19:47:48 -0400 Subject: [PATCH] Implement dbnzf --- XenonRecomp/recompiler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/XenonRecomp/recompiler.cpp b/XenonRecomp/recompiler.cpp index 2902687..05b768f 100644 --- a/XenonRecomp/recompiler.cpp +++ b/XenonRecomp/recompiler.cpp @@ -685,6 +685,12 @@ bool Recompiler::Recompile( println("\tif ({}.u32 != 0 && !{}.eq) goto loc_{:X};", ctr(), cr(insn.operands[0] / 4), insn.operands[1]); 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: printConditionalBranch(false, "eq"); break;