Programming Problems
Home
PROGRAMS
DOWNLOAD
ABOUT
CONTACT
Monday, 18 July 2016
Write a program in assembly language(8086) for interchanging the values of two Memory locations.
DATA SEGMENT
VALUE1 DB 0Ah
VALUE2 DB14h
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
MOV AX, DATA
MOV DS, AX
MOV AL, VALUE1
XCHG VALUE2,AL
MOV VALUE1,AL
INT 21h
CODE ENDS
END
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Popular Posts
Write a shell script in Linux/Unix to generate Fibonacci series.
tput clear echo enter the range of the fibonacci series---- read n echo ------------------------------------------------- a=0 b...
Write a shell script in Linux/Unix to find out the value of nCr.
clear echo “ Enter values for n & r” read n read r t=0 i=1 a=1 b=1 c=1 d=0 while [ $i –le $n ] do a=`expr $a \* $i` i=`e...
No comments:
Post a Comment