Users browsing this thread: 2 Guest(s)
JSR Returning to wrong place in code
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... :/
I'm not sure we are solving the root problem here... :/
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 2 Guest(s)