COSC204 - Assembly Language (Weekday 2021)
COSC204 - Assembly Language (Weekday 2021)
1a. What is the hexadecimal representation of the decimal number 246? (4.5 Marks)
2a. What instruction is used to perform data transfer in an 8086 assembly language program?
Give an example of how to use this instruction. (3 Marks)
c. Write a complete 8086 assembly language program that adds two 32 bits positive
numbers. (7.5 Marks)
b. Consider the data definition below and answer the questions that follow
(5 Marks)
b. Write and describe the format for a procedure in Assembly Language (6.5 Marks)
5a. What is the function of the OR instruction in assembly language? Write the syntax for the
OR instruction. (3 Marks)
6a. Translate the following high level programming conditional statement into Assemble
Language. (8.5 Marks)
b. Describe the LOOPZ. Write down the syntax for LOOPZ. (4 Marks)