mirror of
				https://github.com/hedge-dev/XenonRecomp.git
				synced 2025-11-04 06:47:09 +00:00 
			
		
		
		
	Control register calls.
This commit is contained in:
		@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user