Page 68 - Computer_Science_F5
P. 68
Chapter One: Computer architecture
FOR ONLINE READING ONLY
Figure 1.56: Creating instruction
(c) Execute the instruction in (b) by "double-clicking" on the instruction in the
"CPU INSTRUCTIONS IN MEMORY(RAM)". Observe the result in the
"CPU Registers" view.
(d) Create an "instruction", that moves the "second number" (in this example
use "20") to register R01. Repeate the procedures in (b), and add the second
number, that is 20 in the "source operand" value box and select "R01" from
the drop down menu of the register in the "Destination Operand".
(e) Execute the instruction in (d) by "double-clicking" on the instruction in the
"CPU INSTRUCTIONS IN MEMORY (RAM)". Observe the contents of
"R00" and "R01" in the CPU Registers view (see the figure below).
Figure 1.57: Instruction excution
59
Student’s Book Form Five
Computer Science Form 5.indd 59 23/07/2024 12:32