Question: helpQuestion 1 : Write an assembly language program for the following problems: a . Exchange the contents of the following memory locations: Let's say: (

helpQuestion 1: Write an assembly language program for the
following problems:
a. Exchange the contents of the following memory
locations:
Let's say:
(5021H)=35H
(5022H)=45H
(5023H)=55H
Exchange them so that,
(5021H)=45H
(5022H)=55H
(5023H)=35H
(4m)
b. Add the two 8-bit numbers:
(6000H)=DCH
(6001H)=3EH
Result =DCH+3EH=1AH
(6002H)=1AH( The result is stored here)
(4m)
c. Subtract the two 8-bit numbers.
(2000H)=6FH
(2001H)=3BH
Result =6FH-3BH=34H
(2002H)=34H,(The result is stored here)
(4m)
d. Write an assembly language program to solve the
problem: Add two 16-bit numbers.
(3000H)=15H
(3001H)=2BH
(3002H)=20H
(3003H)=3EH
Result =2B15H+3E20H=6935H
(3004H)=35H
(3005H)=69H
 helpQuestion 1: Write an assembly language program for the following problems:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!