Commodore 128 Programmer's Reference Manual page 96

Hide thumbs Also See for 128:
Table of Contents

Advertisement

86
COMMODORE 128
EXAMPLE:
U
10 POKE 4633,0
20 POKE 4634,48
) |
30 A = USR(X)
uj
40 PRINT A
Place starting location ($3000 = 12288:$00 = 0:$30) = 48 of machine language
] j
routine in location 4633 and 4634. Line 30 stores the returning value from the floating-
L->
point accumulator. The USER vector is assumed to be in BANK 15. Your machine
language routine MUST be in RAM bank 0 below address $4000.
VAL
Return the numeric value of a number string
VAL(X$)
EXAMPLE:
10 A$ = "120"
20 B$ = "365"
30 PRINT VAL (A$ + B$)
RUN
J
485
XOR
Return exclusive OR value
XOR (nl9n2)
This function returns the exclusive OR of the numeric argument values nl and n2.
X = XOR (nl,n2)
where nl, n2, are 2 unsigned values (0-65535)
EXAMPLE:
r
PRINT XOR(128,64)
)
192
RESERVED SYSTEM WORDS
(KEYWORDS)
This section lists the words used to make up the BASIC 7.0 language. These words
cannot be used within a program as other than a component of the BASIC language. The
only exception is that they may be used within quotes (in a PRINT statement, for example).
u

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents