1.4. Processor fundamentals
A subsection of Computer Science, 9608, through 1. Theory Fundamentals
Listing 10 of 63 questions
A large warehouse stores goods that must be kept above a temperature of 15 degrees Celsius. The warehouse has six temperature sensors which are each placed at a different location in the warehouse. A computer system is programmed to turn on appropriate heaters when one of the sensors is below the minimum temperature. State the name given to the type of system described. Justify your answer to part . Sensors and heaters are two types of device used in this system. State two other devices that are used. Justify your choice. Device 1 Justification Device 2 Justification The computer system stores the temperature readings for the six sensors in six 8-bit memory locations. Six of the bits in an 8-bit register, LOWREG, are used to indicate whether a particular reading is below the minimum temperature. A value of 1 means the reading is below the minimum temperature. For example: This pattern of bits in LOWREG shows that sensor 5, sensor 4 and sensor 1 have readings below the minimum temperature. Not used Not used The following table shows part of the instruction set for a processor which has one general purpose register, the Accumulator (ACC), and an Index Register (. Instruction Explanation Op code Operand LDD Direct addressing. Load the contents of the given address to ACC. LDR #n Immediate addressing. Load the number n to IX. LDX Indexed addressing. Form the address from + the contents of the index register. Copy the contents of this calculated address to ACC. STO Store the contents of ACC at the given address. INC Add 1 to the contents of the register (ACC or . ADD Add the contents of the given address to the ACC. OR Bitwise OR operation of the contents of ACC with the contents of address. CMP #n Compare the contents of ACC with number n. CMP Compare the contents of ACC with the contents of . JMP Jump to the given address. JPE Following a compare instruction, jump to if the compare was True. JGE Following a compare instruction, jump to if the content of ACC is greater than or equal to the number used in the compare instruction. The code uses six memory locations to store the temperature readings. It stores readings for sensors 1 to 6 at addresses 8000 to 8005. At a particular time, the memory locations store the following data. Dry run the assembly language code starting at START and finishing when the loop has been processed twice. LOWTEMP LOWREG COUNTER ACC IX B00000000 Explain why the operand of the instruction labelled Q1 has the value 32. The code beginning at the instruction labelled HEATON must make the system turn on the heaters in those areas that are below the minimum temperature. Describe what this code will have to do.
9608_w17_qp_31
THEORY
2017
Paper 3, Variant 1
The environment in a very large greenhouse is managed by a computer system. The system uses a number of different sensors that include temperature sensors. In addition, the system controls a number of heaters, windows and sprinklers. State one other type of sensor that could be used with this system. Justify your choice. Sensor Justification Describe why feedback is important in this system. The system makes use of a number of parameters. These parameters are used in the code that runs the system. State one of the parameters used in controlling the temperature in the greenhouse. Explain how the parameter identified in part is used in the feedback process. There are eight temperature sensors numbered 1 to 8. Readings from these sensors are stored in four 16-bit memory locations. The memory locations have addresses from 4000 to 4003. Each memory location stores two sensor readings as two unsigned binary integers. Sensor 1 reading is stored in bits 8 to 15 of address 4000; Sensor 2 reading is stored in bits 0 to 7 of address 4000 and so on. The diagram shows that the current sensor 1 reading has a value of 97. Give the denary value of the current reading for Sensor 5. The following table shows part of the instruction set for a processor. The processor has one general purpose register, the Accumulator (ACC). Instruction Explanation Op code Operand LDD Direct addressing. Load the contents of the location at the given address to ACC. AND #n Bitwise AND operation of the contents of ACC with the operand. AND Bitwise AND operation of the contents of ACC with the contents of . XOR #n Bitwise XOR operation of the contents of ACC with the operand. XOR Bitwise XOR operation of the contents of ACC with the contents of . OR #n Bitwise OR operation of the contents of ACC with the operand. OR Bitwise OR operation of the contents of ACC with the contents of . can be an absolute address or a symbolic address. LSL #n Bits in ACC are shifted n places to the left. Zeros are introduced on the right hand end. LSR #n Bits in ACC are shifted n places to the right. Zeros are introduced on the left hand end. The reading for Sensor 5 is used in a calculation. The calculation is carried out by two assembly language instructions. The first instruction loads the contents of the 16-bit location that contains the value for Sensor 5. The second instruction moves the bits in Sensor 5 so that the 16-bit value is the value of Sensor 5. Complete the two instructions in the following code. Use the instruction set provided. LDD // load the contents of the 16-bit location containing the value for Sensor 5 into the Accumulator // move the bits in the Accumulator so that the Accumulator stores the value of Sensor 5 as an unsigned 16-bit binary integer
9608_w17_qp_32
THEORY
2017
Paper 3, Variant 2
A large warehouse stores goods that must be kept above a temperature of 15 degrees Celsius. The warehouse has six temperature sensors which are each placed at a different location in the warehouse. A computer system is programmed to turn on appropriate heaters when one of the sensors is below the minimum temperature. State the name given to the type of system described. Justify your answer to part . Sensors and heaters are two types of device used in this system. State two other devices that are used. Justify your choice. Device 1 Justification Device 2 Justification The computer system stores the temperature readings for the six sensors in six 8-bit memory locations. Six of the bits in an 8-bit register, LOWREG, are used to indicate whether a particular reading is below the minimum temperature. A value of 1 means the reading is below the minimum temperature. For example: This pattern of bits in LOWREG shows that sensor 5, sensor 4 and sensor 1 have readings below the minimum temperature. Not used Not used The following table shows part of the instruction set for a processor which has one general purpose register, the Accumulator (ACC), and an Index Register (. Instruction Explanation Op code Operand LDD Direct addressing. Load the contents of the given address to ACC. LDR #n Immediate addressing. Load the number n to IX. LDX Indexed addressing. Form the address from + the contents of the index register. Copy the contents of this calculated address to ACC. STO Store the contents of ACC at the given address. INC Add 1 to the contents of the register (ACC or . ADD Add the contents of the given address to the ACC. OR Bitwise OR operation of the contents of ACC with the contents of address. CMP #n Compare the contents of ACC with number n. CMP Compare the contents of ACC with the contents of . JMP Jump to the given address. JPE Following a compare instruction, jump to if the compare was True. JGE Following a compare instruction, jump to if the content of ACC is greater than or equal to the number used in the compare instruction. The code uses six memory locations to store the temperature readings. It stores readings for sensors 1 to 6 at addresses 8000 to 8005. At a particular time, the memory locations store the following data. Dry run the assembly language code starting at START and finishing when the loop has been processed twice. LOWTEMP LOWREG COUNTER ACC IX B00000000 Explain why the operand of the instruction labelled Q1 has the value 32. The code beginning at the instruction labelled HEATON must make the system turn on the heaters in those areas that are below the minimum temperature. Describe what this code will have to do.
9608_w17_qp_33
THEORY
2017
Paper 3, Variant 3
9608_w19_qp_11
THEORY
2019
Paper 1, Variant 1
Complete the following statements about CPU architecture by filling in the missing terms. The Von Neumann model for a computer system uses the program concept. A program is a series of instructions that are saved in . The processor each instruction, it and then it. The processor uses several to store the data and instructions from the program because they can be accessed faster than main memory. The following table shows assembly language instructions for a processor that has one general purpose register, the Accumulator (ACC). Instruction Explanation Op code Operand 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. STO Store contents of ACC at the given address. ADD Add the contents of the given address to ACC. CMP Compare the contents of ACC with the contents of . OUT Output to screen the character whose ASCII value is stored in ACC. INC Add 1 to the contents of the register (ACC or . JPE Following a compare instruction, jump to if the compare was True. JPN Following a compare instruction, jump to if the compare was False. END Return control to the operating system. The current contents of the main memory are: Address Instruction LDD 80 ADD 80 STO 80 LDD 82 INC ACC STO 82 CMP 81 JPN 50 LDD 80 OUT END … ASCII code table (Selected codes only) ASCII Code Character & ‘ ( ) * Assembly language instructions can be put into groups. Tick (✓) one box in each column to identify the appropriate instruction group for each of the three assembly language instructions. Instruction group Assembly language instruction STO 80 JPN 50 INC ACC Input and output of data Data movement Arithmetic operations Unconditional and conditional jump instructions Compare instructions
9608_w20_qp_12
THEORY
2020
Paper 1, Variant 2
Questions Discovered
63