answersLogoWhite

0

LDA A //Load first number

STA TMP

LDA B //Load second number

STA A

LDA TMP

STA B

HLT

IMPROVED:

You can visit the link below to see the source code of the program. Make sure you have required library installed in MASM to run the program else you can see the logic and coding.

http://infinityloopers.com/swapping-two-numbers-in-assembly-programming/

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


Write an assembly language program to multiply two BCD numbers?

fish


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


Which program translate assembly language into machine language?

Assembly langue is translated into machine language by an assembler.


A program for assembly language for traffic light control?

an assembly language program of traffic light


What is assembly program?

An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.


Reserved word in assembly language program?

use of reserved word in assembly language


Example of Password program code in assembly language?

How to write the program un Assembly language to set a password for personal computers?


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


Write a program in 8086 assembly language to draw a circle?

You need an 8086 assembly language pencil.


What translation programs converts assembly language programs to object program?

The only translation program that converts assembly language to machine code is an assembler.


What application will be used to convert an assembly language source program into machine language?

An Assembler converts assembly language instructions into machine language.

Trending Questions
Difference between a balanced and unbalanced bridge circuit? If an industrial customer of an electrical power company connects a large single phase load to a three phase power line then every user on that power line will have unbalanced power explain why? How much does it cist to lady a driveway with cement? What is considered the brain of a dishwasher? Who is Elisha Gray? Build an FA that accepts the language of all strings of length 4 or more such that the next-to-last letter is equal to the second letter of the input string? How do you write a program in visual foxpro? Where is compiler in jvm? In a simple circuit a 12-V source produces 240 micro A so what is the circuit resistance? Why is alternating current more convenient than a direct current? List top core companies of electronics and communication engg? How long does it take water to go through concrete? What do you need to adjust if HTML tells you i cant save your page on howrse? In direct current charges carries have a drift velocity but in alternating current there is no net velocity of the charge carriers. Explain why? How to check whether a character is numeric in an alphanumeric field in easytrieve.? Which part of a circuit is a current? Are led lights dangerous if place in a wooden box? How do you use the word prosthesis in a sentence? How the heating element use in two phase 415 volts and what rating of element you prefered? Is a screw with fewer or more threads per centimeter easier to drive into a piece of wood?