8086 programming problem

gaurav9991

Right off the assembly line
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?
 

pulkitpopli2004

Cyborg Agent
as far as i remember

1. instruction will be fetched from the address present in instruction pointer IP i.e eq to 0100H

2. And AX will be stored at address 0350H
 
OP
G

gaurav9991

Right off the assembly line
as far as i remember

1. instruction will be fetched from the address present in instruction pointer IP i.e eq to 0100H

2. And AX will be stored at address 0350H

i am agree with you for the first answer but for second indirect addressing mode is used. Had it been MOV A,B then it would be 035H
am i correct ?
 

pulkitpopli2004

Cyborg Agent
well [BX] tells that the the value of the AX will be stored not in BX bt at the address of BX..
and address of BX is 0350H.. so i think this wud b d only solution
 

silent008

Broken In
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?

I believe that the instructions are fetched from 4200H and the data is stored in A350H.
 
Top Bottom