Question 8(b)(i) 2016 · October-November · Paper 11 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 8
Part (b)
(i)
Part (b)
(i)
ONE mark for each correct row.
Question 40
Question 50
Question 90
Question 40
Question 90
Question 90
Question 90
Question 90
Show text version of question
Question 8
Part (b)
(i)
Question 8
The table shows assembly language instructions for a processor which has one general purpose
register, the Accumulator (ACC) and an Index Register (IX).
Instruction Explanation Op code Operand LDD <address> Direct addressing. Load the contents of the given address to ACC. Indexed addressing. Form the address from <address> + the LDX <address> contents of the index register. Copy the contents of this calculated address to ACC. STO <address> Store contents of ACC at the given address. ADD <address> Add the contents of the given address to ACC. CMP <address> Compare contents of ACC with contents of <address> Following a compare instruction, jump to <address> if the compare JPE <address> was True. Following a compare instruction, jump to <address> if the compare JPN <address> was False. JMP <address> Jump to the given address. Output to the screen the character whose ASCII value is stored in OUT ACC. END Return control to the operating system.
The diagram shows the contents of the main memory:
Main memory 800 0110 0100 801 0111 1100 802 1001 0111 803 0111 0011 804 1001 0000 805 0011 1111 806 0000 1110 807 1110 1000 808 1000 1110 809 1100 0010 : :
(i)
Complete the trace table below for the following assembly language program. This
program contains denary values.
100 LDD 800 101 ADD 801 102 STO 802 103 LDD 803 104 CMP 802 105 JPE 107 106 JPN 110 107 STO 802 108 OUT 109 JMP 112 110 LDD 801 111 OUT 112 END : : 800 40 801 50 802 0 803 90
Selected values from the ASCII character set:
ASCII code 40 50 80 90 100 Character ( 2 P Z d
Trace table:
Memory address ACC OUTPUT
40 50 0 90
Question 13
Why this question appears here
99% assigned-topic match · Processor fundamentals › Assembly language
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_w16_qp_11.pdf
