Processor fundamentals
125 questions. Open a question to solve it and check the official answer.
Assembly language · 2 marks · official answer ready
(ii) Consider the instruction: Describe what this instruction does. ...............................................................................................................…
Assembly language · 1 mark · official answer ready
(iii) Programmers prefer to write machine code instructions in hexadecimal. Explain why. ..........................................................................................…
Assembly language · 1 mark · official answer ready
(iv) What is the hexadecimal number for the machine code instruction shown in part (b)(ii)? ............................................................ [1]
Assembly language · 2 marks · official answer ready
(v) Show the 16-bit machine code for the following instruction: JPE 204 [2]
Assembly language · 2 marks · official answer ready
(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 choic…
Assembly language · 5 marks · official answer ready
(b) Use the ASCII code table to trace execution of the given program. ASCII code table (part) Character Decimal Character Decimal Character Decimal 32 I 73 R 82 A 65 J 74 S 83 B 6…
Assembly language · 2 marks · official answer ready
5 (a) An assembler translates assembly language programs. A compiler translates high-level language programs. They each do this for programs written in a particular language and f…
Assembly language · 5 marks · official answer ready
(b) In the early stages of program development, a source program usually has errors. Each statement below (labelled A, B, C, D, E, F, G and H) describes one step in the developmen…
CPU architecture · 4 marks · official answer ready
6 (a) The sequence of operations below shows the fetch stage of the fetch-execute cycle in register transfer notation. 1. MAR ← [PC] 2. PC ← [PC] + 1 3. MDR ← [[MAR]] 4. CIR ← [MD…
Assembly language · 2 marks · official answer ready
(i) LDD 78 Case 1 / Case 2 Explanation: ....................................................................................................................... ...................…
Assembly language · 2 marks · official answer ready
(ii) INC ACC Case 1 / Case 2 Explanation: ....................................................................................................................... .................…
Assembly language · 2 marks · official answer ready
(i) The instruction at address 102 is fetched. 100 LDI 150 ACC 101 OUTCH 102 LDD 203 103 INC ACC 104 STO 150 IX 105 JP 100 106 END 107 Show the contents of the registers after exe…
Assembly language · 3 marks · official answer ready
(ii) The instruction at address 100 is fetched. 200 65 ACC 201 76 202 65 203 77 204 32 IX 205 32 Show the contents of the registers after execution. Write on the diagram to explai…
Assembly language · 1 mark · official answer ready
(i) What is the maximum number of different instructions this processor could have? ...............................................................................................…
Assembly language · 2 marks · official answer ready
(ii) Consider the instruction: Describe what this instruction does. ...............................................................................................................…
Assembly language · 1 mark · official answer ready
(iii) Programmers prefer to write machine code instructions in hexadecimal. Explain why. ..........................................................................................…
Assembly language · 1 mark · official answer ready
(iv) What is the hexadecimal number for the instruction shown in part (b)(ii)? ................................................... [1] Show the machine code for the following inst…
Assembly language · 2 marks · official answer ready
(v) LDI 150 [2]
Assembly language · 2 marks · official answer ready
(vi) LDV 15 [2]
Assembly language · 5 marks · official answer ready
(c) Use the ASCII code table to trace the first four iterations of the given program. ASCII code table (part) Character Decimal Character Decimal Character Decimal 32 I 73 R 82 A …
