
7-6
Section
Details of BASIC Commands
206
peek
Syntax:
PEEK
(<address expression>)
Description:
Function Returns the contents (converted from ASCII code to decimal) of a specified address.
Remarks:
<address expression> is address to be
PEEK
ed. Valid range: [&H0E000…&H3FFFF].
The result is an integer value representing the character code of the byte at the specified address.
The returned integer will be in the range [0…255].
Note:
1.
Be sure to address the correct area. The user memory contains areas other than the
variable area. The other areas are used for other purposes, such as program
execution.
Examples:
> 10 A = PEEK(&H30000)
> 20 PRINT A
> RUN
32
See also:
POKE
pgen
Syntax:
PGEN
<program expression>
Description:
Command. Selects which of the four BASIC program areas is the current area.
Remarks:
<program expression> is an integer in the range: [1…4]. If the program expression is out of the
allowable range an “ILLEGAL FUNCTION CALL” error (code B005) will result.
The name and the number of bytes currently used by the selected program area will be displayed.
All subsequent commands entered at the terminal will operate on the currently active program area.
Examples:
> PGEN 1
> LIST
10 REM THIS IS THE PROGRAM IN MEMORY AREA #1
20 PRINT “HELLO WORLD”
> PGEN 2
> LIST
10 REM THIS IS THE PROGRAM IN MEMORY AREA #2
20 PRINT “HELLO AGAIN WORLD”
>
See also:
PNAME
,
PINF
,
PMEM
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...