|
SAMPLE PROGRAMS
(Copy-and-Paste into Source Code text box to load)
~ Add the value of "1234567890" to the Upper Accumulator. ~ Subtract the value "2234567890" from Upper Accumulator. ~ The expected result value is "-10000000000000000000". ~ This will cause an "overflow error" and the program halts. ~ Pushing the "Program Start" button will continue program execution. ~ Then subtract the value "0000000002" from the Lower Accumulator. ~ The expected result value is "-10000000000000000002". ~ The Upper Accumulator is then written to the specified ~ drum location of "0027". ~ The Lower Accumulator is then written to the specified ~ drum location of "0028". ~ Punch out the stored value in drum locations of "0027" to "0036". ~ The program is halted. ~ Note: 16 lines of instruction are necessary, do not remove ~ the "trailing" lines of zeros. 10 0007 0001 11 0008 0002 16 0009 0003 21 0027 0004 20 0028 0005 71 0027 0006 01 0000 0000 1234567890 2234567890 0000000002 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 |
~ Add the value of "1234567890" to the Lower Accumulator. ~ Add the negative value "-2234567890" to Lower Accumulator. ~ The expected result value is "-10000000000000000000". ~ This will cause an "overflow error" and the program halts. ~ Pushing the "Program Start" button will continue program execution. ~ Then add the value "0000000002" to the Lower Accumulator. ~ The expected result value is "-09999999999999999998". ~ The Upper Accumulator is then written to the specified ~ drum location of "0027". ~ The Lower Accumulator is then written to the specified ~ drum location of "0028". ~ Punch out the stored value in drum locations of "0027" to "0036". ~ The program is halted. ~ Note: 16 lines of instruction are necessary, do not remove ~ the "trailing" lines of zeros. 15 0007 0001 15 0008 0002 15 0009 0003 21 0027 0004 20 0028 0005 71 0027 0006 01 0000 0000 1234567890 -2234567890 0000000002 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 |
~ Add the value "9876543210" to the Lower Accumulator. ~ Add the negative value "-2234567890" to Lower Accumulator. ~ The expected result value is "00000000007641975620". ~ The Lower Accumulator is then written to the specified ~ drum location of "0028". ~ Punch out the stored value in drum locations of "0027" to "0036". ~ The program is halted. ~ Note: 16 lines of instruction are necessary, do not remove ~ the "trailing" lines of zeros. 15 0005 0001 15 0006 0002 20 0027 0003 71 0027 0004 01 0000 0000 9876543210 -2234567890 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 |
~ Add the value of "1234567890" to the Upper Accumulator. ~ Add the negative value "-2234567890" to Upper Accumulator. ~ The expected result value is "-10000000000000000000". ~ This will cause an "overflow error" and the program halts. ~ Pushing the "Program Start" button will continue program execution. ~ The Upper Accumulator is then written to the specified ~ drum location of "0027". ~ Punch out the stored value in drum locations of "0027" to "0036". ~ The program is halted. ~ Note: 16 lines of instruction are necessary, do not remove ~ the "trailing" lines of zeros. 10 0005 0001 10 0006 0002 21 0027 0003 71 0027 0004 01 0000 0000 1234567890 -2234567890 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 |
|
| ©2009 Infinite Fish, Inc. All Rights Reserved. |