Users browsing this thread: 2 Guest(s)
JSR Returning to wrong place in code

#8
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
LDA $01,S in AddToList pulls the first byte from the stack ($0001FF). Since we come from JSR NotSummon I think the spell index is shifted in $0001FD and $0001FE-$0001FF is occupied by the address. I think the correct thing to do here would be LDA $03,S but I'm not 100% sure as I never use this type of LDA. However even if you load from the stack a LDA does not alter the stack like a push/pull does.

I'm not sure we are solving the root problem here... :/
  Find
Quote  



Messages In This Thread
RE: JSR Returning to wrong place in code - by madsiur - 12-01-2016, 02:53 PM

Forum Jump:

Users browsing this thread: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite