You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed the Inc and Dec operators to two new operators:
Index
Swap
Index looks at the tape, reads the value, and uses that as an index for a pointer stored in the register. The address of the cell at that index is stored in the register. For implementations that use tape indexes as pointers, like the interpreter, this operation is simply addition. For implementations where pointers do not increment by 1 (an implementation with real pointers), this is addition with a constant multiplier.
Swap simply swaps the value at the tape with the value in the register.
The text was updated successfully, but these errors were encountered:
I changed the
Inc
andDec
operators to two new operators:Index
Swap
Index
looks at the tape, reads the value, and uses that as an index for a pointer stored in the register. The address of the cell at that index is stored in the register. For implementations that use tape indexes as pointers, like the interpreter, this operation is simply addition. For implementations where pointers do not increment by 1 (an implementation with real pointers), this is addition with a constant multiplier.Swap
simply swaps the value at the tape with the value in the register.The text was updated successfully, but these errors were encountered: