Professional Documents
Culture Documents
Assignment6 Arithmetic Logic Operations
Assignment6 Arithmetic Logic Operations
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.
5. Convert an 8-bit binary number to its ASCII equivalent. The result should
be stored as two ASCII characters representing the hexadecimal digits.