0% found this document useful (0 votes)
14 views

Lab 3 Probl e M: EKT222 Microprocessor System Northern Malaysia University College of Engineering

This document contains instructions for three programming problems related to a microprocessor lab. The first problem involves writing a program to calculate the sum of numbers stored in memory locations 2100H through 2103H and storing the sum in location 2101H. The second problem is to write a program to find the largest element in a block of data stored from location 2102H, with the result in 2102H. The third problem is to write a program to reverse the order of a block of data stored from 300H to 305H in the same memory locations. Additional problems include reading a byte from 2200H and counting its 1 bits, and writing a program to multiply two 8-bit unsigned numbers storing the result in locations 2500H and

Uploaded by

athome
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Lab 3 Probl e M: EKT222 Microprocessor System Northern Malaysia University College of Engineering

This document contains instructions for three programming problems related to a microprocessor lab. The first problem involves writing a program to calculate the sum of numbers stored in memory locations 2100H through 2103H and storing the sum in location 2101H. The second problem is to write a program to find the largest element in a block of data stored from location 2102H, with the result in 2102H. The third problem is to write a program to reverse the order of a block of data stored from 300H to 305H in the same memory locations. Additional problems include reading a byte from 2200H and counting its 1 bits, and writing a program to multiply two 8-bit unsigned numbers storing the result in locations 2500H and

Uploaded by

athome
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

EKT222 Microprocessor System Northern Malaysia University College of Engineering

LAB 3 Probl e m 1. Write a progr a m to calculat e the su m The lengt h of the block is in me m o r y series itself begins in me m o r y location me m o r y locations 2100H and 2101H ( of a series of nu mb e r s . location 2102H and the 2103H. Store the sum in S! byt e in 2101H".

2. Write a progr a m to find the large s t ele m e n t in a block of dat a. The lengt h of series is in me m o r y location 2#01H and the block itself begins in me m o r y location 2#02H. Store the large s t $alue in me m o r y location s 2#00H. %ssu m e that the num b e r s in the block are all &' bit unsign e d binary num b e r s . 3. The follo(ing block of dat a is stor e d in me m o r y locations from 30##H to 30#%H. Write a progr a m to transf er the block of dat a in re$er s e order at sa m e me m o r y location. DATA ) 22* %#* !2* ++* ,-* 3,

.. /ead one byte dat a from me m o r y location 2200H. 0eter mi n e the num b e r of bit 11s in the dat a and store the result at me m o r y location 2201H. #. Write a progr a m to multiply t(o &' bit unsign e d num b e r s . Store the result in me m o r y locations 2%00H and 2%01H ( S! byte in 2%01H".

Su b m i t yo u r pr o g r a m aft e r lab s e s s i o n .

Microprocessor Laboratory Page

You might also like