Programmeerimiskeel
As you click on the "Step" button in this exercise, you are actually simulating the role of the
xComputer's clock. Each click has the same effect as one tick of the clock, and you are driving
the computation at your leisure in the same way as the ticking of the clock usually drives the
computer with its regular ticking.
--------------------------------------------------------------------------------
Count and Store
For the last part of the lab, consider the following program, "CountAndStore". This program
should have been automatically loaded by the xComputer applet, so you won't have to type it in.
Just select it from the pop-up menu at the top of the applet, and click on the "Translate" button to
store it in the xComputer's memory. Note that in an xComputer program, anything that comes
after a semicolon on a line is a comment, which is meant for human readers. Comments are
ignored by the computer.
lod-c 1 ; Start with a 1 in location 12
sto 12