9618/12/M/J/23 question 3: worked solution (May/June 2023, paper 12)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 4.2 Assembly Language Worked solution from the Processor Fundamentals Paper 1 Theory Fundamentals booklet, Part 2 of 3. Q24 9618/12/M/J/23 original Q3 Structured · 6 marks Worked solution (a) The first pass deals with the source text and labels. The second pass makes the object code. Action Pass generates object code second reads the source code one line at a time first and second removes white space first adds labels to the symbol table first generates object code → second [1] reads the source code one line at a time → both first and second [1] removes white space and adds labels to the symbol table → first [1] (b) Write the three terms in order: Direct [1] Indirect [1] Immediate [1] KEY IDEA First pass: tidy the code and build the symbol table; second pass: generate object code. TOTAL 6 marks Official mark scheme VIDEO ▶ Starts at Q3 (39:33) Starts at Q3 (39:33) · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.