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

#9
Posts: 175
Threads: 11
Thanks Received: 10
Thanks Given: 8
Joined: May 2013
Reputation: 13
Status
Well-Fed
Yeah, it's definitely a side issue, but it does indicate (along with a little further reading) that I had some fundamental misunderstandings about how the stack works. I'll go over my code again with that in mind and see if I can track down the problem now.

ETA: I figured it out! I need to pull both inside IsSummon AND right after I return from NotSummon, before I branch, rather than at CharNextSpell. I realised that the address it was RTSing to was actually the IDs for the two Lore/Summon spells that were learned at the point I was testing this, because it wasn't pulling the value I'd pushed from A during that loop.

Things aren't actually working yet, but I've fixed the immediate problem. I'm at the actual menu-building code part now and I've barely started to scratch the surface of that. WISH ME LUCK.


Current Project: FF6: Tensei | Discord ID: TristanGrayse
  Find
Quote  



Messages In This Thread
RE: JSR Returning to wrong place in code - by GrayShadows - 12-01-2016, 03:06 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite