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!

Microprocessor Programming Question Paper

Microprocessor Programming 

Course:Computer Science

Institution: Kenya Methodist University question papers

Exam Year:2010



INSTRUCTIONS
• Answer Question ONE and any Other TWO Questions

Question 1
a) Explain how your studying microprocessor programming will enhance your
understanding of operating systems. (3marks)

b) Explain the concept of portability as it applies to programming languages. (4marks)

c) Is the assembly language for Intel 80x86 processor family the same as those for other
computer systems such as VAX or Motorola 60x00? Explain your answer. (4marks)

d) Explain the terms LSB and MSB as used in assembly programming. (4marks)

e) Perform the following operations: Your results should be in decimal.
i) 110001101b + 10011100b
ii) 45A34BCh + 77892FFh
iii) 4776535o + 5223476o
iv) 1100110b + 78929ABCh
v) 276652 + 789388 (15marks)

Question 2
Write a program that uses a loop to calculate the first seven numbers of the Fibonacci series {1, 1, 2, 3, 5, 8, 13}. Place each value in the EAX register and display it with a call DumpRegs statement inside the loop. (20marks)

Question 3
a) With the aid of a diagram, describe the six virtual machine levels. (12marks)

b) With the aid of an example, explain a block comment. (3marks)

c) Suppose that a 5-stage dual pipelined processor has one stage that requires two clock
cycles to execute, and there are two pipelines for that stage. How many clock cycles
would be required to execute 10 instructions? Explain your answer with clear working. (5marks)
Question 4
a) Write an assembly program that subtracts three integer values using only 16 bit registers. Insert a DumpRegs statement to display the register values. (10marks)

b) Write a program that implements the following arithmetic expression: EAX = -val2 + 7 – val3 + val1. Initialize the variables. (10marks)






More Question Papers


Popular Exams



Return to Question Papers