Users browsing this thread: 1 Guest(s)
Ignore Imp check on a specific character

#2
Posts: 384
Threads: 35
Thanks Received: 11
Thanks Given: 13
Joined: Dec 2018
Reputation: 18
Status
Moog
Hmm... before this equipment JSR is called some character data is checked, but then X gets pushed onto the register during this subroutine.

Try
Code:
*5A              PHY   (Protect the Y Variable for now)
*9B              TXY    (Use Y to store the current X)
*FA              PLX   (Get back the previous X to do the character check)
BD D8 3E      LDA $3ED8,X  (Which character is it?)
*DA              PHX (Put the previous X back on the stack)
*BB              TYX (Put the current X value back into X)
*7A              PLY (Get the Y value back off the stack)
C9 0E        CMP #$0E     (Is it Kappa?)
...
<From here, resume your code post Kappa check>

I suspect this will temporarily give you the X that you need to check the character ID, before putting it back to what it was before the code injection. Make sure you have a back-up save file in case the stack shenanigans are wrong and cause a save-damaging crash.
  Find
Quote  



Messages In This Thread
RE: Ignore Imp check on a specific character - by C-Dude - 04-05-2021, 12:24 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite