24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RESCAN [TTCALL <strong>10</strong>,]<br />

22.138 RESCAN [TTCALL <strong>10</strong>,]<br />

FUNCTION<br />

Resets the input buffer pointer to point to the beginning of the<br />

previous command. Note that if the RESCAN UUO is issued after the<br />

first terminal input or output instruction, the command is no longer<br />

in the buffer.<br />

CALLING SEQUENCE<br />

RESCAN flag<br />

return 1<br />

return 2<br />

In the calling sequence, the program supplies the flag, which controls<br />

the action of returning from the call. The flag is bit 35 of the<br />

word. If the flag is not set, the call always returns at return 1.<br />

If the flag is set, the call returns at return 2 when no command is Tn<br />

the input buffer, otherwise, the call takes return 1.<br />

EXAMPLE<br />

RESCAN 1<br />

SKPINL<br />

JRST PROMPT<br />

;Read TTY input<br />

;Is anything there?<br />

;No, must be typeahead<br />

;Read command line<br />

COMMON PROGRAMMING ERRORS<br />

Placing a comma after the flag.<br />

22-351

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!