Trying to execute 200cc code when a flag is set
#5
The issue is you have nothing that will execute (by default) if your CC byte isn't equal to 2. The way you have it setup in your original post is once the CC byte is 2, everything under your If Statement (28 line) is written, there's nothing in your code to rewrite everything "back to normal" if the CC byte later on happens to not be 2.

Thus what you need above your If Statement is all the 04 RAM Writes again BUT writing their default instruction values, and you need 04 RAM Writes for all the C2 Hook Addresses that will also write their default instruction values. This will obviously add quite a bit of more length to the code.

This would be annoying as hell to write (finding all the default instruction values).
Reply


Messages In This Thread
RE: Trying to execute 200cc code when a flag is set - by Vega - 11-06-2021, 02:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)