MC Lab Questions
MC Lab Questions
(BECL456A)
2. a) Write an ALP to exchange the source block starting with address 20h,
(Internal RAM) containing N (05) bytes of data with destination block
starting with address 40h (Internal RAM).
b) Write an ALP for Hexadecimal UP- Counter.
3. a) Write an ALP to exchange the source block starting with address 10h,
(Internal memory), containing N (06) bytes of data with destination
block starting with address 2000h (External memory).
b) Write an ALP for Hexadecimal DOWN- Counter.
4. a) Write an ALP to add the bytes in the RAM at 34h and 35h, store the
result in the register R5 (LSB) and R6 (MSB), using Indirect
Addressing Mode.
b) Write an 8051 C program to find the sum of first 10 integer numbers.
5. a) Write an ALP to subtract the bytes in the Internal RAM at 34h and
35h, store the result in the register R5 (LSB) and R6 (MSB).
b) Write an 8051 C program to find the factorial of a given number.
7. a) Write an ALP to find largest number from a given array starting from
20h and store it in Internal Memory location 40h.
b) Write an ALP to multiply two 8-bit numbers stored at 30h and 31h and
store 16-bit result in 32h and 33h of Internal RAM.
8. a) Write a 8051 C Program to rotate stepper motor in Clock and Anti-
Clockwise direction.
b) Write an ALP to perform to separate positive and negative in a given
array.
10. a) Write a 8051 C Program to rotate stepper motor in Clock and Anti-
Clockwise direction.
b) Write an ALP to perform division operation on 8-bit number by 8-bit
number.
11. a) Write a 8051 C Program to rotate stepper motor in Clock and Anti-
Clockwise direction.
b) Write an ALP to separate even or odd elements in a given array.
17.a) Write an ALP to find largest number from a given array starting from
20h and store it in Internal memory location 40h.
b) Write an 8051 C program to find the sum of first 10 integer numbers.
18.a) Write an ALP to move a block of n bytes of data from source (20h) to
destination (40h) sing internal RAM.
b) Write an 8051 C program to find the sum of first 10 integer numbers.
19.a) Write an ALP to move a block of n bytes of data from source (20h) to
destination (40h) sing internal RAM.
b) Write an 8051 C program to count the number of Ones and Zeros in
two consecutive memory locations.
20. a) Write an ALP to move a block of n bytes of data from source (20h) to
destination (40h) using internal RAM.
23.) Write an ALP to find smallest number from a given array starting from
20h and store it in Internal Memory location 40h.
b) Write an ALP to perform division operation on 8-bit number by 8-bit
number.
24.a) Write an ALP to multiply two 8-bit numbers stored at 30h and 31h and
store 16-bit result in 32h and 33h of Internal RAM.
b) Write an 8051 C program to count the number of Ones and Zeros in
two consecutive memory locations.