The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.33 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Users browsing this thread: 1 Guest(s)
How Do We Index Address

#1
Posts: 61
Threads: 18
Thanks Received: 1
Thanks Given: 47
Joined: May 2014
Status
None
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
  Find
Quote  



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

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite