Question 4(d) 2017 · October-November · Paper 12 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (d)
Question 5
Question 10
Question 50
Question 2
Question 10
Question 11
Question 11
Question 65
Question 11
Question 12
Question 12
Question 89
Question 12
Question 13
Question 13
Question 32
Show text version of question
Question 4
Part (d)
Question 4
The following diagram shows the components and buses found inside a typical personal computer
(PC).
A
B
F
E
Control unit
Main memory
Part (d)
The following table shows part of the instruction set for a processor. The processor has one
general purpose register, the Accumulator (ACC), and an Index Register (IX).
Instruction Op code Explanation Operand (mnemonic) Direct addressing. Load the contents of the given address LDD <address> to ACC. Relative addressing. Move to the address n locations from LDV #n the address of the current instruction. Load the contents of this address to ACC. STO <address> Store the contents of ACC at the given address. INC Increment the contents of ACC. Output the character corresponding to the ASCII character OUTCH code in ACC. Following a compare instruction, jump to <address> if the JPE <address> compare was True. JMP <address> Jump to the given address. CMP #n Compare the contents of ACC with number n.
Question 7
Complete the trace table for the following assembly language program.
Label Instruction StartProg: LDV #Offset CMP Value ASCII code table (selected codes only) JPE EndProg <Space> 2 A B Y OUTCH 32 50 65 66 89 LDD Offset INC STO Offset JMP StartProg EndProg: END Offset: 10
Question 50
Question 65
Question 89
Question 32
Value: 32
Trace table:
ACC Offset OUTPUT
Question 10
50 2
Question 10
Question 8
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_w17_qp_12.pdf
