Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Benha University Grade: 3rd

Benha Faculty of Engineering Measured CLOs:CLO2, CLO3


All Electrical Engineering Programs
Semester: 1st (2023/2024) Assignment #6
Course Title: Examiners:
Microprocessor based system (a)
Dr. Ahmed El-Awamry
Course Code: E1321

1. Write a program to add two 4-byte numbers. The numbers are stored in
memory locations, and the result should also be stored in memory.

2. Convert a 2-digit BCD number into its binary equivalent. Use packed
BCD format (where two digits are stored in a single byte).

3. Write a program to multiply two 8-bit numbers without using the MUL
instruction. Implement the multiplication using repeated addition.

4. Write a program to find the maximum value in an array of 8-bit numbers.


The array is stored in memory, and the size of the array is given.

5. Convert an 8-bit binary number to its ASCII equivalent. The result should
be stored as two ASCII characters representing the hexadecimal digits.

6. Implement a pseudo-random number generator using shift and XOR


operations. The initial seed can be a fixed 8-bit number (you can use
Linear Feedback Shift Register (LFSR) concept).

7. Develop a program to sort an array of 8-bit numbers in ascending or


descending order.

You might also like