Chapter 4. programming – IAI America S-SEL-E User Manual
Page 182

Page 177
Chapter 4. Programming
WRIT (Write)
E x p a n s io n
c o n d itio n
(A N D · O R )
In p u t
c o n d itio n
(I/O · F la g )
C o m m a n d
P o s t
(O u tp u t p o rt · F la g )
C o m m a n d
O p e ra n d 1
O p e ra n d 2
O p tio n a l
O p tio n a l
W R IT
C h a n n e l n o .
C o lu m n n o .
[Function]
Writes the character string from the channel in Operand 1 to the column in Operand 2.
Stops writing after the character designated in the SCHA command is written.
The column can be either local or global.
[Example]
SCHA
10
OPEN
1
READ
1
2
CLOS
1
Set LF (= 10) for the ending character.
Open channel 1.
Write the character string up to LF from channel 1 to column 2.
Close channel.
LET
1
2
LET
2
3
SCHA
13
READ
*1
*2
Assign 2 to variable 1.
Assign 3 to variable 2.
Set CR (= 13) for the ending character.
Write the character string up to LF from channel 2 (content of variable 1) to column 3 (content of
variable 2).
[Function]
Sets the ending letter to be used in the READ command and WRIT command.
A value from 0 ~ 255 (character code used in BASIC) can be designated for the character.
[Example]
Refer to the READ command and WRIT command.
SCHA (Set Ending Letter)
E x p a n s io n
c o n d itio n
(A N D · O R )
In p u t
c o n d itio n
(I/O · F la g )
C o m m a n d
P o s t
(O u tp u t p o rt · F la g )
C o m m a n d
O p e ra n d 1
O p e ra n d 2
O p tio n a l
O p tio n a l
S C H A
C h a ra c te r c o d e
O p tio n a l