IF THEN ELSE Help

Started by live2play, April 11, 2010, 09:29:39 PM

Previous topic - Next topic

live2play

I did bne   +0x12.

Yeah, I'll have to track down how/where that value is being used in the troublesome levels and deal with that using C2.

dcx2

#16
What was the 32-bit machine code that corresponded to the bne +0x12 in the WiiRD disassembly?  The lower 16-bits will be the immediate.

Earlier I said that you can have problems if your ASM is being called for more than you intended.  (i.e. RE4, the hurt-enemies function also affected the open-boxes)  You might need to follow the float along the stack on a good level, and figure out what area is the one that reads the value the right way.  Then, on a bad level, follow along again and the path should involve different branches.

That will help you find the place that's using the float in the way that you want to manipulate.  Put the C2 there, so that it will be called only when needed, and not any more often than that.

live2play

I'll have to get back to you on the machine code as I'm not at my computer/Wii right now.

Thanks for the good advice on finding the "real" place to insert my C2 code.  I'll have to track that down.