Commodore 128 Programmer's Reference Manual page 83

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
n
n
n
BASIC BUILDING BLOCKS AND BASIC 7.0 ENCYCLOPEDIA
73
ABS
Return absolute value of argument X
ABS (X)
EXAMPLE:
PRINT ABS (7*(-5))
n
ASC
n
Return CBM ASCII code for the first character in X$
ASC(X$)
This function returns the CBM ASCII code of the first character of X$.
EXAMPLE:
X$ = "C128":PRINT ASC (X$)
67
ATN
Return the arctangent of X in radians
ATN (X)
The value returned is in the range - it/2 through ir/2.
EXAMPLE:
PRINT ATN (3)
1.24904577
BUMP
Return sprite collision information
BUMP (N)
To determine which sprites have collided since the last check, use the BUMP function.
BUMP(l) records which sprites have collided with each other, and BUMP(2) records
which sprites have collided with other objects on the screen. COLLISION need not be
active to use BUMP. The bit positions (0-7) in the BUMP value correspond to sprites 1
through 8 respectively. BUMP(n) is reset to zero after each call.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents