EE 315: Microprocessor Laboratory

 

Kit Familiarization Experiments (S/W 1)

 


 

1.      Write a program to add two single byte binary numbers stored at locations 2100H and 2101H. Store the sum in location 2102H and the Carry in 2103H. Use immediate/direct addressing mode to place the summands in their respective locations during "initialization", and direct addressing to load the summands into the accumulator and place the sum and carry in their locations. Use conditional jump to store the Carry.

 

2.      Repeat program P1 but use indirect addressing to fetch the summands rather than direct addressing like above.

 

3.      Repeat program P1 using LHLD to load both the summands in one instruction and SHLD to store the results (sum and carry) using one instruction. Assume the numbers are available in memory.

 

4.      Repeat program P3 using RAL and ANI to check for carry from the addition.

 

5.      Repeat program P3 using RAR and ANI to check for carry from the addition.

 

6.      Repeat P3 but assume that the two numbers to be added are decimal numbers stored in BCD code. Also, check for valid BCD codes before performing the addition. If numbers entered are not BCD, return to monitor after displaying error message.