Question 4(a)(vi) 2014 · October-November · Paper 32 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
(vi)
(vi)
Show text version of question
Question 4
Part (a)
(vi)
Question 4
The table below gives a subset of the assembly language instructions for a computer with a single
general purpose register, the Accumulator (ACC), and an index register (IX).
Instruction Opcode Opcode Explanation Operand (mnemonic) (binary) 0000 0100 Direct addressing. Load the contents of the given LDD <address> address to ACC LDV <number> 0000 0101 Load the given number to ACC STO <address> 0001 0000 Store the contents of ACC at the given address 0000 0110 Indirect addressing. At the given address is the LDI <address> address to be used. Load the contents of this second address to ACC 0000 0111 Indexed addressing. Form the address as LDX <address> <address> + the contents of IX. Copy the contents of this address to ACC INC <register> 0000 0011 Add 1 to the contents of the register (ACC or IX) 1000 0001 Output the character corresponding to the ASCII OUTCH character code in ACC to the monitor 1001 0000 Input a denary number from the keyboard and store IN in ACC JMP <address> 1100 1000 Unconditional jump to the given address 1100 1001 Compare the contents of ACC with the given CMP <number> number 1110 0111 If the result of the previous compare instruction was JPE <address> a match, jump to the given address The given table of instructions shows the binary number used for each instruction's opcode.
All instructions in machine code are stored as a 16-bit pattern, with the opcode as the first 8 bits and the operand as the second 8 bits.
(vi)
A programmer makes the statement:
“For this instruction set, some of the instructions do not require an operand”
Circle if this statement is true or false. Explain your choice with reference to the table of instructions given.
True / False
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
Question 12
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_w14_qp_32.pdf
