03 - direct access output.

Usage:

mme     gerout
vfd     18/BUFPTR,o6/03,h12/TERMID
zero    STATPTR,COURTESY

Where:

BUFPTR
points to a buffer that contains information for the I/O operation. See below for more details.
TERMID
is the terminal ID name.
STATPTR
points to a word where status information can be written.
COURTESY
gives the courtesy call address. This address is used if specified.

Description:

This version of MME GEROUT writes to one or more terminals. The format of the buffer indicated by BUFPTR depends on the nature of the terminal.

G-115 Terminal:
    Word 0, upper: number (N) of additional words in buffer.
    Word 0, lower: media code.
    Words 1-N:     one print line, BCD characters, octal 77
                   indicates end of line, next char is slew
 
Teletype or CRT:
    Word 0, upper: number (N) of additional words in buffer.
    Word 1, upper: number of characters to be output.
    Words 2-N:     one print line, ASCII characters, right-
                   justified in bytes, left-justified in
                   words

When MME GEROUT returns, a status will be filled into the word indicated by STATPTR. Below we discuss the meaning of each bit in this status word.

Bits 0-17:   Not used
    18-23:   VIP terminal status
             18-21:  0
             22 = 1  PRINT key pressed to initiate
                     transmission
             23 = 1  Transmission failed after 16 attempts
    24-26:   Not used
       27:   Abort (in general status mode, Break/Disconnect
                    waiting)
       28:   Not used
       29:   Connected to another slave program
       30:   Waiting to connect to slave program
       31:   Terminal idle
       32:   If on, communication modules in the central
             system cannot acknowledge I/O request because
             terminal is busy with I/O
       33:   If on, output transmission complete
       34:   If on, terminal has not called in and
             connected, or has disconnected
       35:   If on, operator sent BREAK which terminated
             operation

See Also:

expl mme gerout 04

Copyright © 2000, Thinkage Ltd.