0% found this document useful (0 votes)
50 views1 page

Assignment 1

The document contains instructions for two assembly language programs. The first program is asked to store the data FFH into RAM locations 50H to 58H using direct and indirect addressing modes. The second program is asked to add two 16-bit numbers stored at locations 51H-52H and 55H-56H, storing the result in locations 40H, 41H and 42H. It also asks to find the average of five 8-bit numbers, storing the result in register H.

Uploaded by

your friend
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

Assignment 1

The document contains instructions for two assembly language programs. The first program is asked to store the data FFH into RAM locations 50H to 58H using direct and indirect addressing modes. The second program is asked to add two 16-bit numbers stored at locations 51H-52H and 55H-56H, storing the result in locations 40H, 41H and 42H. It also asks to find the average of five 8-bit numbers, storing the result in register H.

Uploaded by

your friend
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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).

You might also like