9608_w20_qp_13
A paper of Computer Science, 9608
Questions:
8
Year:
2020
Paper:
1
Variant:
3

Login to start this paper & get access to powerful tools

2
3
4
5
The fetch-execute cycle is used when a computer processor runs a program. Complete the table by writing the register transfer notation for each of the descriptions. Letter Description Register transfer notation A The Memory Address Register (MAR) stores an address. The contents of this stored address are copied to the Memory Data Register (MDR). B The contents of the Program Counter (PC) are copied to the Memory Address Register (MAR). C The contents of the Memory Data Register (MDR) are copied to the Current Instruction Register (CIR). D The contents of the Program Counter (PC) are incremented. Write one of the letters A, B, C or D (from the table above) on each row (1 to 4), to show the correct order of the fetch-execute cycle. Buses are used to transfer data between various components of the computer system. Tick (✓) one or more boxes on each row to identify the buseach statement describes. Statement Address bus Control bus Data bus Receives data from the MAR Carries an address or an instruction or a value Transmits timing signals to components Bidirectional The following table shows assembly language instructions for a processor that has one general purpose register, the Accumulator (ACC). Instruction Explanation Op code Operand INV Input a denary value from the keyboard and store it in ACC. LDD Direct addressing. Load the contents of the location at the given address to ACC. LDM #n Immediate addressing. Load the denary number n to ACC. LDI Indirect addressing. The address to be used is at the given address. Load the contents of this second address to ACC. ADD Add the contents of the given address to ACC. OUT Output to screen the character whose ASCII value is stored in ACC. INC Add 1 to the contents of the register (ACC or . CMP Compare the contents of ACC with the contents of . JPE Following a compare instruction, jump to if the compare was True. JPN Following a compare instruction, jump to if the compare was False. STO Store contents of ACC at the given address. END Return control to the operating system. The assembly language instructions are grouped according to their function. Write one example of an op code from the table of instructions for each of the following groups. Arithmetic Data movement The current contents of the main memory are: Address Instruction INV STO 901 INV STO 900 ADD 902 STO 902 LDD 903 INC ACC STO 903 CMP 901 JPN 502 END … The current contents of a general-purpose register X are: X The contents of X represent an unsigned binary integer. Convert the contents of X into denary. The contents of X represent a two’s complement binary integer. Convert the contents of X into denary. State why the binary number in X cannot represent a Binary Coded Decimal (BCD).
6
7