JSR Returning to wrong place in code
#8
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... :/
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Map graphics error and wrong location name Gestahl 4 5,689 03-04-2020, 05:09 PM
Last Post: Gestahl
  Wake Up animation is wrong doofenH 2 2,363 02-01-2020, 06:20 PM
Last Post: C-Dude
Dark Knight FF6 SNES vs GBA code differences? Royaken 2 2,590 11-01-2019, 07:32 PM
Last Post: Royaken
  Peer Sprite Viewer (what am I doing wrong?) romraptor 7 5,415 08-22-2019, 03:04 PM
Last Post: romraptor
  Sorry if this is the wrong place need help Zinchi 2 2,622 11-12-2017, 10:13 PM
Last Post: Zinchi
  Event Hacking - What am I doing wrong? PowerPanda 7 6,739 05-04-2017, 07:29 PM
Last Post: PowerPanda
  asm hacking: "faking" short jumps from your code (in a new bank) to old code Eggers 2 3,911 04-16-2016, 07:18 PM
Last Post: madsiur
  Magic Control Code sleepydude 16 14,317 09-19-2015, 02:41 PM
Last Post: Tenkarider
  Sprite Armor Code Royaken 2 3,577 05-30-2015, 11:26 AM
Last Post: Catone
  How to Place your Custom Boss Hack and how to hide Ayamatsuno148 1 2,705 02-11-2014, 11:49 AM
Last Post: SSJ Rick

Forum Jump:


Users browsing this thread: 1 Guest(s)