\IDENT\ASCIN
* BASIC IO PACKAGE -- 19720713
* P850, P855, P860
*
* CALLING SEQUENCE:  CF   A14,NAME
* WHERE:                  A14 = REGISTER WITH LINKSTACKPOINTER
*                         NAME  = ENTRY POINT NAME OF CALLED SUBROUTINE
*
* LINKSTACK: 3 ENTRIES USED MAXIMUM
* A15 STACK IS USED FOR REGISTER SAVE AREA
\ENTRY\ASCIN
* ASSIGNMENTS
ASR\EQU\/10\DEV ADDR
HSR\EQU\/20\DEV ADDR
HSP\EQU\/30\DEV ADDR
*
S\EQU\1\START
H\EQU\0\HALT
*
* ASCIN--INPUT ASCII TO A6 FROM TELETYPE
*        STATUS TO A7
*
ASCIN\LDK\A7,1\INPUT MODE
\CIO\A7,S,ASR
\RB(4)\*-2
\INR\A6,0,ASR\INPUT CHAR
\RB(4)\*-2
\ANK\A6,/7F\MASK 7 BITS
\CIO\A7,H,ASR\STOP
\SST\A7,ASR
\RB(4)\*-2
\RTN\A14
\END

