Owner`s manual

96
5.1.13 Machine Language Program Control Statements
INP@ INP@ $E8,A Substitutes data at port number $E8 for variable A.
OUT@ OUT@ $E8,A Outputs variable A to port number $E8.
LIMIT
POKE
PEEK
USR
100 LIMIT 49151
100 LIMIT A
Limits the area used
by
the BASIC program to the
49151
address (BFFF with hexadecimal notation).
Limits the area used by the
BASIC program to the
address
of
variable A.
100 LIMIT $BFFF Limits the area used by the BASIC program to the
300
LI
M IT
MAX
address BFFF in hexadecimal notation. A hexadecimal
notation is indicated by an "$" mark before the notation.
Returns the area used by the
BASIC program to the
maximum memory.
120
POKE
49450,
175
Sets data
175
(decimal notation) to the decimal notation
address
49450.
130
POKE
AD, DA Sets the value (0 - 255) indicated by variable
DA
to the
address specified by variable AD.
150 A =
PEEK
(494 Changes the data at decimal notation address
49450
to a
50) decimal number, and substitutes for variable A.
160 B =
PEEK(C)
Changes data entered at the decimal notation address
specified by variable C to a decimal notation, and
substitutes for variable B.
500 USR(49152)
550
USR
(AD)
570
USR($COOO)
Moves program control to decimal address 49152. This
control movement has the same function as the machine
language CALL command. As a result, when the
RET
command
(201
at decimal notation) is in the machine
language program, returns to the BASIC program.
Calls the decimal address specified by variable AD.
Calls the hexadecimal address
COOO.