Six original Cambridge-style questions on assembly language, instruction groups and the two-pass assembler, with mark-scheme style solutions.
Describe the relationship between assembly language and machine code.
Describe what happens during each pass of a two-pass assembler.
200 LDD FIRST 201 CMP SECOND 202 JPE SAME 203 LDM #78 204 JMP SHOW 205 SAME: LDM #89 206 SHOW: OUT 207 END 208 FIRST: 12 209 SECOND: 12
Complete the symbol table produced by pass 1 for this program, which starts at address 200.
For the program in the previous question, state the character that is output, and explain why. (ASCII: 78 is N, 89 is Y.)
Give the group to which each instruction belongs: (a) STO 300, (b) CMP #10, (c) IN.
Explain why an assembler that reads the program only once could not translate the instruction JMP SHOW at address 204.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.