COSC204 - Assembly Language (Weekend 2021)
COSC204 - Assembly Language (Weekend 2021)
1a. What is the binary representation of the hexadecimal number 48A? (4.5 Marks)
2a. Is the instruction mov 7h, eax valid in assembly language? If not, why? (3 Marks)
b. Show how to write a single line comment in an 8086 assembly language (2 Marks)
c. Write a complete 8086 assembly language program that multiplies two 32 bits positive
numbers. (7.5 Marks)
3a. What is the use of the LENGTHOF operator in assembly language? (4.5 Marks)
b. Consider the data definition below and answer the questions that follow
(5 Marks)
b. Write the format for a nested procedure in Assembly Language (6.5 Marks)
5a. What is the function of the AND instruction in assembly language? Write the syntax for
the AND instruction. (3 Marks)
b. What operands get modified with the execution of a TEST operation? (2 Marks)
6a. Translate the following high level programming conditional statement into Assemble
Language. (7.5 Marks)