Page 15 - Computer_Science_F5
P. 15
Computer Science ADD The value of a location (given by the absolute address) is added to
the value in the accumulator.
The value of a location (given by the absolute address) is subtracted
SUB
from the value in the accumulator
The value of the location (given by the absolute address) is
INC
FOR ONLINE READING ONLY
The value of the location (given by the absolute address) is
DEC incremented.
decremented.
NULL The value of the location (given by the absolute address) is set to
zero.
HLT The simulator shows a message that the program is finished.
Step 2: Select the instruction from the drop-down menu and enter the address
using a real or virtual keyboard.
(a) In the edit RAM line interface, select one instruction i.e. TAKE or
ADD or SAVE, etc.
(b) Edit the location (Lo) i.e. for TAKE instruction (010), ADD
instruction (011), and for SAVE instruction (012), etc.
(c) For each instruction once the location is edited, click RAM button
to write the contents in the RAM.
(d) Finally the contents written in the RAM appear as shown in
Figure 1.4 below.
Figure 1.4: Appearance of allocated data in RAM
6
for Advanced Secondary Schools
Computer Science Form 5.indd 6 23/07/2024 12:32