Consider supporting us on Patreon. Help us keep revisedeck free.
9608_s19_qp_12
A paper of Computer Science, 9608
Questions:
6
Year:
2019
Paper:
1
Variant:
2

Login to start this paper & get access to powerful tools

1
2
3
The fetch-execute cycle is shown in register transfer notation. MAR [PC] PC [PC] - 1 MDR [MAR] CIR [MAR] There are three errors in the fetch-execute cycle shown. Identify the line number of each error and give the correction. Line number Correction Line number Correction Line number Correction A processor’s instruction set can be grouped according to their function. For example, one group is the input and output of data. Identify two other groups of instructions. The following table shows assembly language instructions for a processor which has one general purpose register, the Accumulator (ACC), and an Index Register (. Instruction Explanation Op code Operand LDM #n Immediate addressing. Load the denary number n to ACC LDD Direct addressing. Load the contents of the location at the given address to ACC LDX Indexed addressing. Form the address from + the contents of the Index Register. Copy the contents of this calculated address to ACC LDR #n Immediate addressing. Load the denary number n to IX STO Store contents of ACC at the given address ADD Add the contents of the given address to ACC INC Add 1 to the contents of the register (ACC or CMP #n Compare contents of ACC with denary number n JPE Following a compare instruction, jump to if the compare was True JPN Following a compare instruction, jump to if the compare was False JMP Jump to the given address OUT Output to the screen the character whose ASCII value is stored in ACC END Return control to the operating system The current contents of the main memory, Index Register (and selected values from the ASCII character set are: Address Instruction LDM #0 STO 401 LDX 300 CMP #0 JPE 62 ADD 400 OUT LDD 401 INC ACC STO 401 INC IX JMP 52 END … … IX ASCII code table (Selected codes only) ASCII code Character A B C D E The ASCII character code for ‘A’ is 65 in denary. Convert the denary ASCII character code for ‘A’ into 8-bit binary. Convert the denary ASCII character code for ‘A’ into hexadecimal. The Unicode character code for ‘G’ is 0047 in hexadecimal. State, in hexadecimal, the Unicode character code for ‘D’.
4
5