Users browsing this thread: 1 Guest(s)
JSR Returning to wrong place in code
12-01-2016, 03:06 PM
(This post was last modified: 12-02-2016, 02:40 PM by GrayShadows.
Edit Reason: Update
)
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.
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.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)