Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write an 8085 assembly program to swap two numbers without
using a temporary register

Answers were Sorted based on User's Feedback



write an 8085 assembly program to swap two numbers without using a temporary register..

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

write an 8085 assembly program to swap two numbers without using a temporary register..

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

write an 8085 assembly program to swap two numbers without using a temporary register..

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

write an 8085 assembly program to swap two numbers without using a temporary register..

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

write an 8085 assembly program to swap two numbers without using a temporary register..

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

write an 8085 assembly program to swap two numbers without using a temporary register..

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

write an 8085 assembly program to swap two numbers without using a temporary register..

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

Post New Answer

More Electronics Communications Interview Questions

Explain why is an excess-3 code called an unweighted code?

0 Answers  


how pwm signals generated????

0 Answers  


what is a MEMS sensor? What is its advantage?

1 Answers   Bosch,


When an RC driving point impedance function has zeros at s=-2 & s=-3,then admissible poles for the function would be? a)s=0;s=-6 b)s=0;s=-3 c)s=0;s=-1 d)s=-3;s=-4

3 Answers   BSNL, Jindal Steel and Power,


hav u ever visited BTS site during ur industrial training

4 Answers   Nokia,


Sparking between contacts can be reduced by inserting a a.) Resistance in the line b.) Capacitor in series with contacts c.) Capacitor in parallel with contacts d.) None

4 Answers   BSNL, TelCom,


Why is sio2 layer formed over the entire surface in a monolithic ic?

0 Answers  


What is the current flowing through BTS?

1 Answers  


an unknown semiconductor has Eg=1.1ev and Nv=Nc.it is doped with 10^15 donors,where the donor level is 0.2ev below Ec. given that Ef is 0.25ev below Ec, calculate ni and the concentration of electrons and holes in the semiconductor at 300k.

1 Answers   Universiti Malaysia Pahang,


what is a latch?

0 Answers  


what is isdn.

5 Answers  


Explain various types of antenna diversity.

0 Answers   Huawei,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4456)
  • Electrical Engineering Interview Questions Electrical Engineering (16639)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)