
7-6
Section
Details of BASIC Commands
191
pc get
Syntax:
PC GET
<variable> [,<variable>]
Description:
Statement. Reads data from IR n bits 0 through 15 to the first variable and IR n+1 bits 0 through
15 to the second variable. The data is converted from hexadecimal to decimal.
Remarks:
<variable> is any valid BASIC variable name. If the second <variable> is omitted only the byte
from IR n is read.
The hexadecimal value in bits 0-15 of IR n is converted to an integer decimal value [-
32768…32767] and assigned to the first variable specified in the
PC GET
statement.
The hexadecimal value in bits 0-15 of IR n+1 is converted to an integer decimal value
[-32768…32767] and assigned to the second variable specified in the
PC GET
statement.
For a detailed description of how to use the
PC GET
statement refer to 6.3. Details of the Data
Exchange Methods.
Examples:
See also:
PC EGET
,
PC PUT
pc put
Syntax:
PC PUT
<numerical expression>
Description:
Statement. Converts a decimal value to hexadecimal and writes the data to IR word n+6.
Remarks:
<numerical expression> is any valid BASIC is any valid numerical expression with an integer
result in the range : [-32768…32767]. If the numerical expression is not an integer it will be
rounded to an integer before transfer. If the value of the numerical expression is not within this
range then zero will be written to IR n+6.
The numerical expression is stored in IR n+6 in hexadecimal format.
The data will be written to the PC in the next I/O refreshing cycle after the
PC PUT
statement is
executed. Execution of the ASCII Unit’s BASIC program will not be paused.
Examples:
See also:
PC EPUT
,
PC GET
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...