don't click here

Address syntax (x,y)

Discussion in 'Engineering & Reverse Engineering' started by Hayate, Jun 29, 2007.

Thread Status:
Not open for further replies.
  1. Hayate

    Hayate

    Tech Member
    What does something like

    move.w (pc,d0.w),d0

    mean? Is it the same as

    move.w X(pc),d0

    but for registers instead of constants?
     
  2. drx

    drx

    mfw Researcher
    2,254
    350
    63
    :rolleyes:
    move.w X(pc,d0.w),d0

    Essentially this copies a word at address (X+d0.w) to d0. Additionally, the pc part makes sure the instruction is relative (taking less space, and stored in the form of a relative pointer to X from the current pc rather than absolute)
     
  3. Sik

    Sik

    Sik is pronounced as "seek", not as "sick". Tech Member
    6,718
    1
    0
    being an asshole =P
    Basically, yes.
     
  4. drx

    drx

    mfw Researcher
    2,254
    350
    63
    :rolleyes:
    That is not true. You can still put a constant before (pc,dX.w), eg. 4(pc,d0.w). (pc,d0.w) alone means nothing other than 0(pc,d0.w).
     
  5. Hayate

    Hayate

    Tech Member
    Nice, thanks for the info guys :)
     
Thread Status:
Not open for further replies.