8086 program problem

Discussion in 'Programmer's Corner' started by gaurav9991, Nov 30, 2010.

  1. gaurav9991

    Thread Starter New Member

    Nov 30, 2010
    2
    0
    can anyone please tell me the answer and why is is for:-

    In 8086 CPU the following register contents are

    CS:4100H DS:A000H BX:0350H IP:0100H

    The 8086 fetches the following instruction using above register

    MOV [BX] , AX

    1) Which is the memory address from where the instruction is fetched?

    2)Which is the memory address where the data that is in AX is stored?

    thanks
     
  2. gaurav9991

    Thread Starter New Member

    Nov 30, 2010
    2
    0
    for 1. It takes address from instruction pointer
    but for 2. Since indirect addressing mode is used, it' not 0350H. Then what it is?
     
  3. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
  4. septemberos

    New Member

    Dec 14, 2010
    5
    1
    1) 41100H
    2) 0A0350H (it IS 0350H plus DS segment base address). BTW, the store goes to EGA/VGA RAM area.
     
Loading...