FANDOM


Syntax

GETBYTE

Explanation

GETBYTE outputs the ASCII value of the first character in the input stream. If no character is waiting to be read, GETBYTE waits for input from the keyboard.

See EOF, GETBYTE.NO.ECHO, and PUTBYTE.

Examples

The following procedure prints all input typed until the Enter key is pressed.

TO WAIT.FOR.ENTER.KEY

TEST GETBYTE = 13
IFFALSE [WAIT.FOR.ENTER.KEY]

END

? WAIT.FOR.ENTER.KEY

I WILL PRESS THE ENTER KEY NOW

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.