ℙ𝕖𝕡 🙴 ℕ𝕠𝕞

home | documentation | examples | translators | download | blog | all blog posts

the ℙ𝕖𝕡/ℕ𝕠𝕞 workspace buffer

The workspace : a string manipulation buffer in the ℙ𝕖𝕡 machine

The workspace buffer is the centre of the ℙ𝕖𝕡 🙵 ℕ𝕠𝕞 virtual-machine and is analogous to an “accumulator” register in a cpu chip. All incoming and outgoing text data is processed through the workspace. All machine instructions either affect or are affected by the state of the workspace.

The workspace buffer is analogous to a processor register in a non-virtual cpu. In order to manipulate a value, it is generally necessary to first load that value into a cpu register. In the same way, in order to manipulate some text in the pep machine, it is necessary to first load that text into the workspace buffer. This can be achieved with the get , pop , and read commands.

commands that manipulate text in the workspace

transfer text to and from the workspace