IAI America XSEL-QX User Manual
Page 310
286
Part 4 Commands
z SGET (Get character)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional
SGET
Variable
number
Column
number,
character literal
CP
[Function]
Assign one character from the column specified in operand 2 to the variable specified in
operand 1.
If a character-string literal is specified in operand 2, the first character will be assigned.
[Example] SGET
1 100
Assign one byte from column 100 to variable 1.
LET
1
3
Assign 3 to variable 1.
LET
2
1
Assign 1 to variable 2.
SCPY
1
‘A’
Copy ‘A’ to column 1.
SGET
*1
*2
Assign ‘A’ from the content of variable 2 (column 1) to
the content of variable 1 (variable 3).