Past-paper question · 2013 May-June · Paper 33 · Q3(e)

Question 3(e) 2013 · May-June · Paper 33 · 3 marks

Original past-paper question for 3(E)
Original past-paper question for 3(E)
Original past-paper question for 3(E)
Original past-paper question for 3(E)
Original past-paper question for 3(E)
Reveal official mark-scheme answer Official mark-scheme answer for 3(E)Official mark-scheme answer for 3(E)

Official answer for Question 3

Part (e)

Part (e)

Labels added to a (symbol) table // creates a list of addresses

[1]
✓
Labels are later looked up to determine the actual address / Assembler must allocate
✓
addresses to labels
[1]
✓
Mnemonic looked up to give binary code/machine code
[1]
✓
Macro instructions are expanded into a group of instructions
[1]
✓
The software makes two passes through the source program
[1]
✓
[Total: 11]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – May/June 2013
✓
9691

Question 33

Mark scheme 9691_s13_ms_33.pdf →

Show text version of question

Question 3

Part (e)

Question 3

The table shows the assembly language instructions for a processor which has one general For

purpose register – the Accumulator (ACC), and an index register (IX). Examiner's Use

Instruction Explanation Op Code Operand

LDD <address> Direct addressing. Load the contents of the given address to ACC STO <address> Store the contents of ACC at the given address

LDI <address> Indirect addressing. At the given address is the address to be used. Load the contents of this second address to ACC Indexed addressing. Form the address as <address> + LDX <address> the contents of IX. Copy the contents of this address to ACC LIX <address> Load the contents of the given address to IX

INC <register> Add 1 to the contents of the register (ACC or IX)

ADD <address> Add the contents of the given address to the contents of ACC OUT Output the contents of ACC (as a denary number) to the monitor IN Input a denary number from the keyboard and store in ACC

JMP <address> Jump (unconditionally) to the given address

END End the program and return to the operating system

The diagrams on the next page show a program loaded in main memory starting at address 100.

Two of the op-codes have been partially blanked out.

Locations 200 onwards contain data which is used by the program.

Question 7

Part (e)

In

Part (d)

the program was shown in assembly language. In practice this must be machine For

code in order to execute the program. Examiner's Use

Explain how the assembler software translates a program from assembly language into machine code.

[3]

Question 10

Topic relevance

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 9691_s13_qp_33.pdf

Keep practising this topic