How Do We Index Address
#1
So I ran up against a wall trying to edit esper level-up bonuses because index addressing seems so simple, but does not compute.  This thread is for the posterity of figuring it out.  From my readings, index addressing is simple.  Instead of going to a static location, you go to a pointed location that is instead increased (or decreased?) by one of the other registers (X, Y, etc.).  So (LDA, X) JSR ($CA24,X) means you jump to the address but if 2 is the current value in the X register, then you go to that address +2.

This is how index addressing works, isn't it?  When I try to modify things in FF6 based on this it doesn't work out.  Also, I often can't follow the C2 notes that are based on index addressing, as they look to be using it differently than I imagine.

Thanks All,
RS

Edit: I did mean JSR for that example.  (LDA, X) is loading to the accumulator like you all said
Reply


Messages In This Thread
How Do We Index Address - by ReturnerScum - 02-07-2016, 12:33 PM
RE: How Do We Index Address - by Catone - 02-07-2016, 12:52 PM
RE: How Do We Index Address - by ReturnerScum - 02-07-2016, 02:13 PM
RE: How Do We Index Address - by Catone - 02-07-2016, 03:15 PM
RE: How Do We Index Address - by m06 - 02-07-2016, 06:03 PM
RE: How Do We Index Address - by madsiur - 02-08-2016, 12:14 AM
RE: How Do We Index Address - by Synchysi - 02-08-2016, 12:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The difficulty spike: how would you address this situation? C-Dude 15 11,204 12-06-2020, 09:32 PM
Last Post: C-Dude
  Event Bits vs. Memory Address PowerPanda 4 5,150 12-01-2017, 11:38 PM
Last Post: m06

Forum Jump:


Users browsing this thread: 1 Guest(s)