Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 14th October 2005, 10:10 AM   (permalink)
Default GATE 2005 question for 8085 uP

Got this from a GATE paper of 2005
Im confused. any clue?


The following program starts at location 0100H
LXI SP, 00FF
LXI H, 0701
MVI A, 20H
SUB M

The content od accumulator when the program counter reaches 0109H is
(A) 20H (B)02H (C)00H (D)FFH

If in addition following code exists from 0109H onwards
ORI 40H
ADD M

what will be the result in the accumulator after the last instruction is executed?
(A)40H (B) 20H (C) 60H (D) 42H
__________________
Artificial Neural Networks are dangerous to mankind
electronist is offline  
Old 15th October 2005, 05:37 PM   (permalink)
Default Re: GATE 2005 question for 8085 uP

Quote:
Originally Posted by electronist
Got this from a GATE paper of 2005
Im confused. any clue?

I don't know that it's about, clarify!
__________________
Tourism in syria website:
http:///www.syriatourism.org
4electros is offline  
Old 15th October 2005, 05:46 PM   (permalink)
Default

You have to choose the right option from a, b, c, d

GATE is graduate aptitude test for engineers , an exam conducted in India for entrence to postgraduate courses
__________________
Artificial Neural Networks are dangerous to mankind
electronist is offline  
Old 17th October 2005, 02:26 AM   (permalink)
Default

If you assume that the program is assembled with assembler as shown then the information is incomplete because
To execute the instruction SUB M at location 0108 you need the content of memory location 0701 pointed by [HL] to perform the operaion SUB M which is A = A-[HL]

Assuming that the data apears in memory as shown in the instructions which means
0100 LXI SP
0101 00
0102 FF
0103 LXI H
0104 07
0105 01
0106 MVI A
0107 20
0108 SUB M

if the memory content is as above then
Quote:
The content od accumulator when the program counter reaches 0109H is
(A) 20H (B)02H (C)00H (D)FFH
the answer will be option C

Quote:
If in addition following code exists from 0109H onwards
ORI 40H
ADD M

what will be the result in the accumulator after the last instruction is executed?
(A)40H (B) 20H (C) 60H (D) 42H
The answer is option C
__________________
Instruite
http://www.icesociety.org
=====================
Ideas that work,
Concepts that sell.
=====================
instruite is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 06:54 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker