Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 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