write an 8085 assembly program to swap two numbers without
using a temporary register
Answers were Sorted based on User's Feedback
Answer / rajdeep saha
1.LXI H,2501
2.MOV A,M
3.INX H
4.MOV B,M
5.MOV M,A
6.DCX H
7.MOV M,B
8.HLT.
Is This Answer Correct ? | 62 Yes | 25 No |
Answer / aradhana
Suppose two values are at 2000h and 4000h
LDA 2000H
MOV B,A
LDA 4000H
STA 2000H
MOV A,B
STA 4000H
HLT
Is This Answer Correct ? | 20 Yes | 4 No |
Answer / lakhan
LIXH7050
MOV A,M
LIXH7051
MOV B,M
MOV M,A
LIXH7052
MOV M,B
RST 01
Is This Answer Correct ? | 19 Yes | 7 No |
Answer / ashish kumar
Assuming there is '10' in 2050 & '20' in 2051
LDA 2050
LXI H 2051
MOV B,M
STA 2051
MOV A,B
STA 2050
RST 5
END
Is This Answer Correct ? | 19 Yes | 11 No |
Answer / bishal ghosh
LDA 0010H
LXI H,0020H
MOV B,M
STA 0020H
MOV A,B
STA 0010H
HLT
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / s.k.chaudhry
LXI H,14
MOV C,M
LXI H,15
MOV B,M
MOV A,C
STA 15
MOV A,B
STA 17
HLT
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / shyam (cit)
(INDIRECT METHOD ) (ASSUME THAT 2000 & 2001 ARE THE
MEMORY LOCATIONS)
LXI D 2000
LDAX A
MOV B A
INX D
LDAX D
DCX D
STAX D
INX D
MOV A B
STAX D
HLT
Is This Answer Correct ? | 11 Yes | 18 No |
In Telecom, While call set up what are the Masseges will flow from all network element to each other.
explain how does frequency affect the size of smps?
What are the various types of rectifier?
What is conductor?
why we use visible spectrum for FSO (free space optic),although it seems strange that when we have to communicate in urban areas then too much light will be in atmosphere for the sake of communication.
Pl. Brief about DNC.
Could somone help to get the detailed notes for telecom testing.please contact me on ani.bhardwaj@rediffmail.com
What is the chemical composition of the substance used as feed horn? And how many types of feedor are there?
What is working principle of profibus?
sample papers for post of A.E. in P.S.E.B.
2 Answers APTransco, FGH, Malwa, PSEB, PSPCL, VCV,
Why circuit turn off time should be greater than the thyristor turn-off time?
hi sir i completed my b tech in ece in 2009 and i am interested in railway jobs and plz provide me with what type of questions will they ask along with model paper and my mail id is vaseem_basha@yahoo.co.in plzzzzzzzzzzzzzzz