There are a number of example programs which can be loaded in to illustrate how Assembly-Code can be written and run using this application.
|
Add
|
Adds the values in memory locations 0 and 1 together.
Stores the result in memory location 2.
|
Count to 10
|
Counts through the numbers from 1 to 10, using register 0 to store the values.
|
multiply
|
Multiplies the values in memory locations 0 and 1 together.
Stores the result in memory location 2.
|
Power of 2
|
Calculates 2 to the power of the value stored in memory location 0 using the LSL command.
Stores the result in memory location 1.
|
Divide by 16
|
Divides the value in memory locations 0 by 16.
Stores the result in memory location 1.
|
Div and Mod
|
Does an integer division on the value in memory location 0 by the value in memory location 1.
Stores the integer result of the divide in memory location 2.
Stores the remainder in memory location 3.
|
Is Even
|
Does a bitwise logical AND with 1 to find whether the value in memory location 0 is odd or even..
Stores the result in register 0 (1 for odd and 0 for even).
|
A and B or C
|
Does a bitwise logical AND between the values in memory locations 0 and 1 and then does a bitwise logical OR between the result and the value in memory location 2.
Stores the result in memory location 3.
|
NAND
|
Does a bitwise logical AND between the values in memory locations 0 and 1.
Stores the result in memory location 2.
|
Triangular Numbers
|
Calculates the triangular number of the value in memory location 0.
Stores the result in memory location 1.
|