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 |
wt is conventional direction of current in a ckt?y it is taken as?
why scanning is necessary in t.v. transmission and why it is carried out at fast rate?
what do you mean by junk yard,neo,meo,leo in satellite communications
SIR VERY GOOD MORNING I AM APPERING FOR RRB EXAM FOR SECTION ENGINEER I REQUEST U TO PLZ FORWORD THE PAPER PATTERN AND EVEN PREVIOUS QUESTION PAPER SIR. I THINK U WILL SURELY HELP ME OUT IN EXAM.
Compare the generalized subnetting with VLSM.
What is meant by the deflection sensitivity of a cro?
What are the faults that might happen in a DCS ?
how can i calculate increase electrical signal power expected at the photodiode detector output given 2 optical loss coefficients and the distance covered using multimode.thank you.
"OPERATIONAL AMPLIFIERS MODEL" means what and what are the topics comes under these
What are the disadvantages of the harmonics present in the inverter system?
Explain how to increase the gain and directivity of an antenna?
what is the difference between forebay and surgetank in case of hydro electric power plant
2 Answers NEA, Nepal Electricity Authority,
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)