12-16-2021, 02:59 PM
Although I can't remember the exact address held in CTR (I think I'm close though):
Try: (Assuming CTR is 8009DD54, adjust accordingly)
C2179FA0 00000005 #Insert asm at 0x80179FA0
7C0902A6 7000000F #ASM mfctr r0; andi. r0, r0, 0xf
2C000004 4082000C#ASM cmpwi r0, 0x4; bne- default_instruction
60840000 38000000 #ASM ori r4, r4, 0x0; li r0, 0x0 (r0 was loaded with 0x0 at 0x80179F8C)
60840001 38000000 #ASM default_instruction: ori r4, r4, 0x1; li r0, 0x0
60000000 00000000 #Question: what is the technical name for this? I know what it's for.
E0000000 80008000 #Full terminator
I can try this out on the first stage, and with any luck, the CTR will have the same address in other stages.
Try: (Assuming CTR is 8009DD54, adjust accordingly)
C2179FA0 00000005 #Insert asm at 0x80179FA0
7C0902A6 7000000F #ASM mfctr r0; andi. r0, r0, 0xf
2C000004 4082000C#ASM cmpwi r0, 0x4; bne- default_instruction
60840000 38000000 #ASM ori r4, r4, 0x0; li r0, 0x0 (r0 was loaded with 0x0 at 0x80179F8C)
60840001 38000000 #ASM default_instruction: ori r4, r4, 0x1; li r0, 0x0
60000000 00000000 #Question: what is the technical name for this? I know what it's for.
E0000000 80008000 #Full terminator
I can try this out on the first stage, and with any luck, the CTR will have the same address in other stages.