Each question is a short assembly language program, in the instruction set used in Cambridge International AS & A Level Computer Science (9618) Paper 1. Trace it through, a line at a time, and complete the trace table exactly as you would on the printed paper. Some are past paper questions, and some were written for this site in the same style.
How to fill in the table. Each row is one instruction as it runs: write its address, then any register or memory value that changes. Leave a cell blank when its value doesn't change from the row above, as the mark scheme does. The first row's address is filled in for you, since every program starts at its first instruction. A jump that isn't taken, a compare and END still get a row, with only the address.
- Interactive mode: each line is marked the moment you tick it. If it's wrong, you can try again, with an explanation of what went wrong. Tap the ? on a line for a fully worked explanation instead.
- Examination mode: no hints and no marking until you submit, as in the real exam.
Signed in, your tables are saved as you go: come back to any question and carry on where you left off. A question is done once you've submitted it with every line of the program traced; done questions are ticked in the list, and Random question picks one you haven't done yet.
Set by your teacher. Questions your teacher has set you are marked in the list, and come up first. Each is worth one mark for every line you get right first time: a line you had to correct, or completed with a hint, gets no mark. If you had already done one before it was set, it starts again, fresh; after that you can have as many attempts as you like, and your best counts.
Objective: trace an assembly language program, showing how the contents of the accumulator, index register and memory change as each instruction runs, and the output (9618 syllabus 4.2, Assembly language).
Where this fits
- Cambridge: Cambridge A Level Computer Science (9618); Cambridge AS Level Computer Science (9618)