0% found this document useful (0 votes)
18 views

COSC204 - Assembly Language (Weekend 2021)

These are past questions for the Assembly language course at Ahmadu Bello University for the weekend of 2021.

Uploaded by

FG na Terrorists
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

COSC204 - Assembly Language (Weekend 2021)

These are past questions for the Assembly language course at Ahmadu Bello University for the weekend of 2021.

Uploaded by

FG na Terrorists
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DISTANCE LEARNING CENTRE

Ahmadu Bello University, Zaria


BSc. Computer Science (200 Level)
2022 January Semester Examination (WEEKEND GROUP)
Course Code & Title: COSC 204 – Organization and Programming Language

Instruction: Answer any four (4) questions.


Time Allowed: 2 Hours

1a. What is the binary representation of the hexadecimal number 48A? (4.5 Marks)

b. How many bytes are contained in a double word? (4 Marks)

c. What is the function of a program counter? (4 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

1. .data byte1 BYTE 10,20,30


2. array1 WORD 30 DUP(?),0,0
3. array2 WORD 5 DUP(3 DUP(?))
4. array3 DWORD 1,2,3,4
5. digitStr BYTE "12345678",0

i. What is the size of array1?


ii. What is the length of digitStr?

(5 Marks)

c. What is an interrupt? (3 Marks)


4a. What is a Label in assembly language? (3 Marks)

b. Write the format for a nested procedure in Assembly Language (6.5 Marks)

c. What is a Flowchart? (3 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)

c. Write a complete Assembly Language program to demonstrate the usage of a Jump If


Zero instruction. (7.5 Marks)

6a. Translate the following high level programming conditional statement into Assemble
Language. (7.5 Marks)

if (OP1 > OP2 || OP3 < OP4) {


Statement;
}Done

b. Describe the LOOPE. Write the syntax for LOOPE. (4 Marks)

You might also like