You are on page 1of 2

FEDERAL POLYTECHNIC, BAUCHI

SCHOOL OF SCIENCE & SCIENCE TECHNOLOGY

COMPUTER SCIENCE DEPARTMENT

1ST SEMESTER EXAMINATION, 2011/2012 SESSION

Class: ND II Computer Science

Course Code: COM 212

Course Title: Introduction to System Programming

Instruction: Attempt any five questions.

Time Allowed: 3 Hours

1. (a) With the aid of a diagram explain communication existing


between the four modules of an assembler? (8 marks)
(b) Trace the codes below, and find out what will be the content of
the accumulator after assembling the program (Assuming the port
address of CRT monitor is 13H):
MVI A3H
MOV B,A
MVI B1H
ADD B
OUT 13H
HLT
(6 marks)
2. (a) Define succinctly any four types of assemblers and loaders? (8
marks)
(b) Design an assembly language program that will continue to
display a number until zero is inputted from the keyboard (Hints:
Assume the port address of keyboard =23H and monitor=75H)? (6
marks)

1
3. (a) Write an assembly language program that will output numbers
from 1 to 100 successively (Hints: Assume the port address of
keyboard =23H and monitor=75H). (8 marks)
(b) Differentiate between application and system programming. (6
marks)
4. (a) fprintf(stderr, “Hello, you are supplying wrong inputs!”); what is
the programmer targeting by writing the code above? (7 marks)
(b) What makes an operating system to become a network
operating system? (7 marks)
5. (a) Write an assembly language program to or the content of the
accumulator say 7BH with an immediate data say A3H and the
result should be displayed on the monitor(Hints: Assume the port
address of the monitor is 75H)? (6 marks)

(b) Draw two symbol table that will be generated by pass 1 module
if the program shown below is compiled:
3000 CLA
3010 ADI 20H
3020 ADI 50H
3030 HLT
(8 marks)
6. (a) Enumerate any advantage an interpreter is having over a
compiler? (8 marks)
(b) List any two advantages of spooling? (6 marks)
7. (a) What is Instruction cycle, list any four instruction cycle of
assembly language? (8 marks)
(b) List any four available flags in an Intel microprocessor and
state their basic functions? (6 marks)

You might also like