Get premium membership and access revision papers, questions with answers as well as video lessons.
Got a question or eager to learn? Discover limitless learning on WhatsApp now - Start Now!

Comp 210: Assembly Language Programming Question Paper

Comp 210: Assembly Language Programming 

Course:Bachelor Of Computer Science

Institution: Kabarak University question papers

Exam Year:2010




COURSE CODE: COMP 210
COURSE TITLE: ASSEMBLY LANGUAGE PROGRAMMING

STREAM: Y2S1
DAY: FRIDAY
TIME: 9.00 – 11.00 A.M.
DATE: 11/12/2009

INSTRUCTIONS:
1. Attempt question one and any other two questions.
2. Question one carries 30 marks and the rest 20 each.

QUESTION ONE (30 MARKS)
(a) Distinguish between the following terms as applied to computers:
(i) Hardware and software. (1 mark)
(ii) Instructions and Pseudo-instructions (1 mark)
(iii) Source programs and Object programs (1 mark)
(b) (i) List the four Pseudo-instructions that can be recognized by the
Assembler. (2 marks)
(ii) Briefly give a definition of each (2 marks)

(iii) Software systems can be subdivided into six categories. Name them
along side their applications (12 marks)
(c) (i) What is a line of code? Name the fields in a line of code. (2 marks)
(ii) During the second pass of an assembler translation, a table look-up procedure
is used.
(a) Name the tables (2 marks)
(b) Show the entries of the tables. (2 marks)
(d) Write a program in assembly language that will perform the OR operation of two
logic operands A and B. (5 marks)


QUESTION TWO (20 MARKS)
(a) State at least five types of addressing modes which determines how data is
acquired from the memory unit. (2.5 marks)
(b) Explain what action is initiated by the following instruction in a 8085
Microprocessor.
MOV B, C
MOV D, A
MVI A, FFH
LXI H, 2400H
MOV M, A
MOV B, M
MVI M, 20H (17.5 marks)

QUESTION THREE (20 MARKS)
The assembly language program given below is used to subtract two numbers.
ORG 100 /origin of program is location 100
LDA SUB /Load Subtrahend to AC
CMA /Complement AC
INC / Increment AC
ADD MIN /Add minuend to AC
STA DIFF / store difference
HALT /Halt computer
MIN, DEC 83 /Minuend
SUB, DEC -23 /Subtrahend
DIF, HEX 0 / difference stored here
END /End program
Show how the assembler will generate the symbolic table. (20 marks)

QUESTION FOUR (20 MARKS)
Write short notes on the following.
(a) A bootstrap loader (4 marks)
(b) Operating system (4 marks)
(c) Utility programs (Explain at least three examples) (12 marks)

QUESTION FIVE (20 MARKS)
(a) Show that the line of code
PL3, LDA SUB I
can be stored in seven consecutive memory locations. (10 marks)
(b) Using a flow chart, explain the operation of an assembler during the first
pass of the translation. (10 marks)






More Question Papers


Popular Exams



Return to Question Papers