CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2011
    Posts
    38

    Addressing Modes Help

    I need assistance with addressing modes. I have a chart...

    LDA 200 | Address field=200
    ADD IMMEDIATE 301 | ?
    LDA INDIRECT 100 | ?
    ADD BASE REGISTER 100 | ?
    LDA INDEXING 100 | Address field=100+100=200

    I cannot figure out the three middle answers at all. Can I get any help on this?

  2. #2
    Join Date
    Nov 2011
    Posts
    38

    Re: Addressing Modes Help

    I forgot the table with it as well

    PC 90
    BR 100
    XR 100
    AC 0

  3. #3
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: Addressing Modes Help

    Quote Originally Posted by halt4814 View Post
    LDA INDIRECT 100 | ?
    That doesn't seem to quite make sense to me. The nature of indirect addressing usually is to take the address to refer to from a register instead of a field in the instruction. So what's the 100 for? Except perhaps this is meant to take the address of the memory location to be eventually addressed from memory location 100. AFAICT that would then be referred to as multi-level memory indirect addressing which is rather unusual. And then you'd still need to know the content of memory location 100...

    ADD BASE REGISTER 100 | ?
    LDA INDEXING 100 | Address field=100+100=200
    I can't really tell from the context what should be the difference between the two, unless perhaps one of them is meant to be scaled-indexed addressing, but then you'd need to know the scale factor.

    In the meantime perhaps this can give you some clues: http://en.wikipedia.org/wiki/Addressing_mode

    Ah, and... None of them is a three-operand instruction form, of course.
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured