Past-paper question · 2017 October-November · Paper 13 · Q4(c)

Question 4(c) 2017 · October-November · Paper 13 · 3 marks

Original past-paper question for 4(C)
Original past-paper question for 4(C)
Original past-paper question for 4(C)
Original past-paper question for 4(C)
Original past-paper question for 4(C)
Reveal official mark-scheme answer Official mark-scheme answer for 4(C)

Official answer for Question 4

Part (c)

✓
Three marks from:
✓
•
✓
The assembler scans the assembly language instructions in sequence
✓
•
✓
When it meets a symbolic address checks to see if already in symbol table
✓
•
✓
If not, it adds it to the symbol table in the symbolic address column
✓
•
✓
If it is already in symbol table check if absolute address known
✓
•
✓
If the absolute address is known, it is entered in the appropriate cell
✓
•
✓
If the absolute address is not known mark / leave as unknown

Mark scheme 9608_w17_ms_13.pdf →

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]

Topic relevance

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

Keep practising this topic