You are on page 1of 18

LAB ASSESSMENT – 02

Name: M Lalit Aditya


Reg. No.: 22BCE3235
Course: Microprocessors and Microcontrollers Lab
(BCSE204P)
Faculty: VIKAS VIJAYVARGIYA
Slot: L1
Q1.) Verify an assembly program to add array of bytes from RAM Loca on and
store the answer into RAM loca ons. Here, number of bytes are user defined.
OUTPUT:

\
Q2.) Verify an assembly program to find the largest number from the array of
bytes. Here, Number of bytes are user defined.
OUTPUT:
Q3.) Verify an assembly program to find a square of a given number (0-9) given
in RAM memory loca on. Use look up table to find the square of a given
number
OUTPUT:
Q4.) . Observe the following, no ng the role of the overflow (OV) Flag .
MOV A , #-128; MOV R4, # -2; ADD A, R4
OUTPUT:
Q5.) Write an assembly program to blink LEDs connected on Port2. Assume
Crystal Frequency 12 MHZ and generate blinking delay for 0.5 sec using looping
method.
OUTPUT:

You might also like