
7-6
Section
Details of BASIC Commands
209
poke
Syntax:
POKE
<address expression> , <numerical expression>
Description:
Statement. Writes one byte to the specified address.
Remarks:
<address expression> is the memory location that will be
POKE
d and is an expression returning an
integer in the range : [&H0E000…&H3FFFFF].
<numerical expression> is the byte of data that will be written to the specified address in the
range : [0…255].
The user should not
POKE
data to memory areas reserved for system use. Doing so may cause the
system to run out of control.
Do not write data to any addresses other than variable addresses using the POKE command.
Examples:
POKE &H25000, &H65 (&H25000 is a variable address)
See also:
PEEK
Syntax:
[# <port expression>][
USING
<print format>;]<expression> {[(,|;|<space>)] <expression>}
Description:
Statement. Outputs data or text to a communications port.
Remarks:
<port expression> is an expression returning an integer in the range: [1… 3].
If the <port expression> is omitted, the terminal port (#1 in the ASC11/21, #3 in the ASC31) is
used as the default.
<Expression> is any valid numerical or character expression. If the expression does not
correspond to the <print format> string then a “TYPE MISMATCH” error (code B013) will
occur.
If the <expressions> are separated by semicolons or spaces, and no formatting is used, they are
output one immediately after the other on the output. If they are separated by commas they are
output with a tab character separating them on the output stream.
If the terminating comma, or semicolon, is omitted a carriage return is appended at the end of the
output.
All numerical expressions are output with a space character either side of the expression. The
space before the numerical expression can be used for an optional minus sign.
If no expressions are specified this statement outputs a carriage return on the output.
An optional format string can be used by applying the
USING
statement. The <print format> string
is a string expression containing the following control characters.
If multiple expressions are set, make sure to include a space between the expression and the
corresponding format to be used. Otherwise the output may not follow the correct format.
Format type
Code
Description
!
Prints only the first character of a string.
&&
Prints the first n characters, where n is the number of blanks
enclosed between & plus 2.
String
@
Prints the corresponding character string.
#
Indicates a digit position.
.
Inserts a decimal point at any desired place
+
Specifies the position of the sign of the numeric value.
-
If specified at the end of the numeric value it specifies that the
sign for negative numbers is suffixed to numeric value.
Numerical
**
Fills the left-most unused positions of the numeric value with *.
Also if - is specified at the end of a number then * will fill the
sign position if the value is positive.
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...