Virtual Turing Machine
Mirror of VTM homepage
(original at http://www.nmia.com/~soki/turing/)
The Tape:
Blank character:
Initial state:
Instructions:
# This is a small script for adding two numbers that are # represented by a string of 1s with a length of one more # than the number. The numbers have a single zero # seperating them and a blank at the end. # # Example: 'B11011B' will add 1 + 1 and hopefully get # 'B111BBBB'. # # Try changing the initial tape to watch it work. pass, 1, pass, 1, R # get past the numbers pass, 0, pass, 1, R # change the zero pass, B, del1, B, L # end of second number, start going # back to delete the last 1 del1, 1, del2, B, L # delete the last 1, go back to # delete the second to last 1 del2, 1, stop, B, R # deletes the second to last 1
I want to:
execute this script and output:
the result of the tape only
one line per step
two lines per step
don't show the state
show the state before the tape
show the state after the tape
and don't show the form again
and show the form before the results
and show the form after the results
save this script with the values
Mirror of VTM homepage
(original at www.nmia.com/~soki/turing/)