Question: Write a program in assembly language such that: a) Two numbers ( x=FF00h and y=02FFh) are saved in two separate memory locations. b) Add the
Write a program in assembly language such that: a) Two numbers ( x=FF00h and y=02FFh) are saved in two separate memory locations. b) Add the two numbers. What is the value of the overflow flag V? c) Repeat part a and b for x=4FF0FF00h and y=4FFF02FFh. Repeat problem 1 with subtraction (x-y). a) x=FF00h and y=02FFh b) x=4FFF2A05h and y=AFFF24CBh Write an assembly program to: a) Fill memory locations from 020000000 with numbers 20, 20, 0 and 0 (Decimal not Hex). b) Take the average of the numbers in successive memory locations and write the result to the first address. - Write an assembly program to: a) Calculate the square of numbers: 1h,2h,3h,4h and 5h stored in five successive memory locations starting from memory address 020000000. Write a subroutine to calculate the square of the numbers. b) Save the results to five successive memory locations starting from memory address 020000020
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
