From cf9522a662db8539eba95d8b205799b932c5a145 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:22:58 +0300 Subject: [PATCH] Some instruction fixes. --- PowerRecomp/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerRecomp/main.cpp b/PowerRecomp/main.cpp index f7aaafe..fbe04f1 100644 --- a/PowerRecomp/main.cpp +++ b/PowerRecomp/main.cpp @@ -320,7 +320,7 @@ int main() break; case PPC_INST_MFLR: - std::println(f, "\tctx.lr = ctx.r{}.u64;", insn.operands[0]); + std::println(f, "\tctx.r{}.u64 = ctx.lr;", insn.operands[0]); break; case PPC_INST_MFMSR: @@ -339,7 +339,7 @@ int main() break; case PPC_INST_MTLR: - std::println(f, "\tctx.r{}.u64 = ctx.lr;", insn.operands[0]); + std::println(f, "\tctx.lr = ctx.r{}.u64;", insn.operands[0]); break; case PPC_INST_MTMSRD: @@ -390,7 +390,7 @@ int main() break; case PPC_INST_ORI: - std::println(f, "\tctx.r{}.u64 = ctx.r{}.u64 | {}", insn.operands[0], insn.operands[1], insn.operands[2]); + std::println(f, "\tctx.r{}.u64 = ctx.r{}.u64 | {};", insn.operands[0], insn.operands[1], insn.operands[2]); break; case PPC_INST_ORIS: