Professional Documents
Culture Documents
4) How many address lines are needed to address each memory locations in a 2048 x 4 memory
chip? (1 mark)
A. 10
B. 11
C. 8
D. 12
(10 marks)
PART B2 Fill in the blanks
1) The Java interpreter translates a Java program from ______to machine language.
(3 marks)
For the code above, fill in the final state of the registers and memory. (Assume big-endian)
Initial Memory
Register Final Value Initial Value Final Value
Value Address
(8 marks)
3) Arithmtic and logic instructions. The assembly language 8086 has the most common
MOV, MUL, JMP. Can you write FOUR (4) sample codes, Addition, Multiplication,
Subtraction and Division with explanation for each of them.
Example,
Addition
ORG0000h
MOV DX, #07H // move the value 7 to the register AX//
MOV AX, #09H // move the value 9 to accumulator AX//
Add AX, 00H // add CX value with R0 value and stores the result in AX//
END
4) Explain Sequential, Branching and Loop structures in 8086 architecture.
Write a simple IF-THEN, IF-THEN-ELSE code with comment as explanation as in
question 3.
Presentation slide will be combined with the previous slide together and present during week 14