A program is written in assembly language.
- (a)The program is converted into machine code by a two-pass assembler. Draw one or more lines to identify the pass or passes in which each action takes place. Action Pass generates object code first reads the source code one line at a time removes white space adds labels to the symbol table second[3]
- (b)Assembly language statements can use different modes of addressing. Complete the following description of addressing modes. ............... addressing is when the operand holds the memory address of the data. ............... addressing is when the operand holds a memory address that stores the memory address of the data. ............... addressing is when the operand is the data.[3]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (May/June 2023). The mark or mark type is shown in brackets.
- [3] 1 mark for generates object code to second pass 1 mark for reads source code one line at a time to both boxes 1 mark for removes white space and adds labels to first pass [Diagram showing lines connecting actions to passes]
- [3] 1 mark for each correct term Direct addressing is when the operand holds the memory address of the data. Indirect addressing is when the operand holds a memory address that stores the memory address of the data. Immediate addressing is when the operand is the data.
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →