Question 3(a)(i) 2016 · May-June · Paper 33 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (a)
(i)
Part (a)
(i)
Loads the number to …. the ACC
Show text version of question
Question 3
Part (a)
(i)
Question 3
The table below gives a subset of the assembly language instruction set for a processor.
The processor has a single general purpose register, the Accumulator (ACC).
Instruction Opcode Explanation Opcode Operand (binary) Direct addressing. Load the contents of the given address LDD <address> 0000 0100 to ACC LDV <number> 0000 0101 Load the given number to ACC STO <address> 0000 1000 Store the contents of ACC at the given address Indirect addressing. At the given address is the address to STI <address> 0000 1001 be used. Store the contents of ACC at this address Indirect addressing. At the given address is the address to LDI <address> 0000 0110 be used. Load the contents of this second address to ACC INC ACC 0000 0011 Add 1 to the contents of ACC INC <address> 0000 0100 Increment the contents of the address Output the character corresponding to the ASCII character OUTCH 1000 0001 code in ACC Input a denary number from the keyboard and store in IN 1001 0000 ACC JMP <address> 1100 1000 Jump to the given address CMP #<number> 1100 1001 Compare the contents of ACC with the given number If the result of the previous compare instruction was a JPE <address> 1110 0111 match, jump to the given address END 1111 1111 Returns control to the operating system The given table of instructions shows the binary representation used for the opcode of each instruction.
All instructions in machine code are stored as a 16-bit pattern:
- the first 8 bits are the opcode
- the second 8 bits are the operand
Consider the instruction:
Question 9
(i)
Describe what this instruction does.
...........................................................................................................................................
.......................................................................................................................................[2]
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_s16_qp_33.pdf
