mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-06-06 09:12:08 +00:00
Control register calls.
This commit is contained in:
parent
8f88bac018
commit
6c2a256c8a
@ -168,7 +168,13 @@ int main()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PPC_INST_BCTR:
|
case PPC_INST_BCTR:
|
||||||
|
std::println(f, "\tctx.fn[ctx.ctr / 4](ctx, base);");
|
||||||
|
std::println(f, "\treturn;");
|
||||||
|
break;
|
||||||
|
|
||||||
case PPC_INST_BCTRL:
|
case PPC_INST_BCTRL:
|
||||||
|
std::println(f, "\tctx.lr = 0x{:X};", base);
|
||||||
|
std::println(f, "\tctx.fn[ctx.ctr / 4](ctx, base);");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPC_INST_BDNZ:
|
case PPC_INST_BDNZ:
|
||||||
@ -204,7 +210,7 @@ int main()
|
|||||||
|
|
||||||
case PPC_INST_BL:
|
case PPC_INST_BL:
|
||||||
std::println(f, "\tctx.lr = 0x{:X};", base);
|
std::println(f, "\tctx.lr = 0x{:X};", base);
|
||||||
std::println(f, "\tctx.fn[0x{:X}](ctx, base);", base / 4);
|
std::println(f, "\tctx.fn[0x{:X}](ctx, base);", insn.operands[0] / 4);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPC_INST_BLE:
|
case PPC_INST_BLE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user