Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack (1) Thread Tools Display Modes
Old 30-11-2010, 07:09 PM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2010
Location: Pune
Posts: 2
Default 8086 programming problem


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?
gaurav9991 is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-11-2010, 09:13 PM   #2 (permalink)
Wise Old Owl
 
pulkitpopli2004's Avatar
 
Join Date: Jul 2010
Location: D!ll!
Posts: 1,131
Default Re: 8086 programming problem

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
pulkitpopli2004 is offline   Reply With Quote
Old 01-12-2010, 07:58 AM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2010
Location: Pune
Posts: 2
Default Re: 8086 programming problem

Quote:
Originally Posted by pulkitpopli2004 View Post
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 ?
gaurav9991 is offline   Reply With Quote
Old 02-12-2010, 01:39 AM   #4 (permalink)
Wise Old Owl
 
pulkitpopli2004's Avatar
 
Join Date: Jul 2010
Location: D!ll!
Posts: 1,131
Default Re: 8086 programming problem

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
pulkitpopli2004 is offline   Reply With Quote
Old 19-12-2010, 10:51 AM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: May 2007
Posts: 22
Default Re: 8086 programming problem

Quote:
Originally Posted by gaurav9991 View Post
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.
silent008 is offline   Reply With Quote
Old 06-01-2011, 10:53 PM   #6 (permalink)
Broken In
 
Join Date: Jan 2005
Posts: 125
Default Re: 8086 programming problem

I think it is 4200 high order address.
Jerin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.thinkdigit.com/forum/programming/134555-8086-programming-problem.html
Posted By For Type Date
8086 instruction question This thread Pingback 01-12-2010 12:01 AM

 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2