PROC Processor Commands

The following PROC Processor commands are presented:

+ Command

Adds the specified integer number to the current value of the currently active input buffer.

- Command

Subtracts the specified integer number from the current value of the currently active input buffer.

a Command

Appends the string in the specified input buffer position to the currently active output buffer.

b Command

Decrements (moves the pointer back) the currently active input buffer pointer by one ’word’ position.

c Command

Indicates a remark command. All text that follows on the same line is ignored by the PROC interpreter.

d Command

Displays either a specific position from the currently active input buffer, or all the positions.

f Command

Increments (moves the pointer forward) the currently active input buffer pointer by 1.

go Command

Transfers program control to another Proc statement which starts with a statement label.

h Command

Moves a literal string of characters to the currently active output buffer.

if Command

Performs a conditional expression.

ih Command

Removes the current parameter from the currently active input buffer and replaces it with a null value or the specified string.

in Command

Prompts for input from the terminal and places it in the secondary input buffer.

ip Command

Stops execution of the Proc and awaits a response from the keyboard.

is Command

Temporarily stops execution of the Proc until a response is provided from the keyboard.

it Command

Inputs data from the tape label of the currently attached magnetic media directly into the primary input buffer.

o Command

Outputs literal text to the terminal at the next available line.

p Command

Processes the commands in the currently active output buffers.

ri Command

Resets either the entire Proc input buffer, or all of the locations following a specified location, and resets both input buffers to null.

ro Command

Resets both of the output buffers. There is rarely a case where this is ever required.

s Command

Sets the input pointer to a specified position number, activating the specified parameter number as the currently active input buffer location.

sp Command

Selects the primary input buffer, and positions the pointer to the beginning of the input buffer.

ss Command

Selects the secondary input buffer and positions the pointer to the beginning of the secondary input buffer.

st Command

Selects and directs output either to the primary output buffer (turns off the stack) or to the secondary output buffer (turns on the stack).

t Command

Directs output to the terminal screen and controls special terminal display functions.

x Command

Serves two purposes:

  • In a mainline (PROC) routine, the x command functions as a stop command and halts the PROC.

  • In a subroutine, the x command acts as a return statement, and returns control to the next executable line after the one that invoked it.