Assignment 1
(Assembly Language Programs)
1. i. Write a program to store data FFH into RAM memory
locations 50H to 58H using direct addressing mode.
ii. Write a program to store data FFH into RAM memory
locations 50H to 58H using indirect addressing mode.
2. i. Write a program to add two 16 bit numbers stored at
locations 51H-52H and 55H-56H and store the result in
locations 40H, 41H and 42H. Assume that the least
significant byte of data and the result is stored in low
address and the most significant byte of data or the
result is stored in high address.
ii. Write a program to find the average of five 8 bit
numbers. Store the result in H. (Assume that after
adding five 8 bit numbers, the result is 8 bit only).