Question 4(c) 2017 · October-November · Paper 13 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (c)
Show text version of question
Question 4
Part (c)
Part (c)
The program given in part
Part (b)
is to be translated using a two-pass assembler.
The program has been copied here for you. The program now starts with a directive which tells the assembler to load the first instruction of the program to address 100. Label ORG #0100 StartProg: LDV #CountDown CMP Num1 JNE CarryOn JMP Finish CarryOn: OUTCH LDD CountDown DEC STO CountDown JMP StartProg Finish: LDM #88 OUTCH END CountDown: 15
Question 32
Question 51
Question 67
Num1: 32
Question 9
On the first pass of the two-pass process, the assembler adds entries to a symbol table.
The following symbol table shows the first eleven entries, part way through the first pass.
The circular labels show the order in which the assembler made the entries to the symbol table.
Symbol table
Symbolic address Absolute address
StartProg 1 100 2
CountDown 3 UNKNOWN 4
Num1 5 UNKNOWN 6
CarryOn 7 UNKNOWN 8 104 11
Finish 9 UNKNOWN 10
Explain how the assembler made these entries to the symbol table.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
Why this question appears here
92% 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_13.pdf
