User`s manual

CHAPTER 3 PROGRAMMING REFERENCE
17
3.4.4. ENTER Purpose :
This command enters a string from a device or from the interface. Reading iB
terminated upon receiving the terminator specified by the EOL command or the
maximum length of data bytes is reached.
Offset :
ENTER%=6
Syntax :
CALL ENTER%(ADDR%,DS) ---BASIC
CALL ABSOLUTE(ADDR%,D$,ENTER%) ---BASIC Compiler
Parameter :
ADDR% - Device address. If 0 < ADDR% <= 30, then it enters the string from
the specified device, ~ otherwise, it enters the string from the interface.
D$ - The string from the specified device or from the interface.
Bus Activity :
- If 0 <= addr <= 30
ATN is set true.
REN is set true.
UNL is sent.
TAD is sent.
MLA is set.
ATN is set false.
Data string is entered.
- If addr < 0 or addr > 30
ATN is set false.
Data string is entered.
Remark:
The entered string length can be read by STATUS.