Cisy 311: Microprocessor Programming Question Paper

Cisy 311: Microprocessor Programming 

Course:Bachelor Of Science And Technology

Institution: Kenya Methodist University question papers

Exam Year:2010



FACULTY : SCIENCE AND TECHNOLOY
DEPARTMENT: CIS AND BIT
TIME : 2 HOURS
INSTRUCTIONS Answer Question ONE and any Other TWO Questions

Question 1
a) Compare and contrast assembly language and high level language. (10marks)
b) Explain the concept of portability as it applies to programming languages. (4marks)
c) Describe how the assembler and linker work together. (4marks)
d) Describe the virtual machine concept. (4marks)
e) Explain briefly the reason why programmers do not use the native language of a computer to write applications. (4marks)
f) How many bytes are in each of the following data types:
i) Byte
ii) Word
iii) Doubleword
iv) Quadword (4marks)

Question 2
With the aid of a clear diagram, explain the virtual machine concept levels 0 through 5 (20marks)

Question 3
a) Explain the specialized uses of registers. (10marks)
b) Write down the program template of an assembly program. (10marks)

Question 4
Write an assembly program that evaluates the expression;
rval=-xval + (yval - zval)
where rval, xval, yval and zval are known constants.
In comments next to each instruction, write the hexadecimal value of EAX (20marks)

Question 5
Write an assembly program that uses a loop to calculate the first seven values in the Fibonacci number sequence {1,1,2,3,5,8,13}. Place each value in the register and display it with a call Dumpregs statement inside the loop.
Hint: By definition, the first two Fibonacci numbers are 0 and 1. Each subsequent number is the sum of the previous two. (20marks)






More Question Papers


Popular Exams


Mid Term Exams

End Term 1 Exams

End Term 3 Exams

Opener Exams

Full Set Exams



Return to Question Papers