Commodore 128 Programmer's Reference Manual page 85

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
BASIC BUILDING BLOCKS AND BASIC 7.0 ENCYCLOPEDIA
75
NOTE: If GRAPHIC is used in a program that defines a function, issue
the GRAPHIC command before defining the function or the function
definition is destroyed.
FRE
Return number of available bytes in memory
FRE (X)
where X is the RAM bank number. X = 0 for BASIC program storage and X = 1 to
check for available BASIC variable storage.
EXAMPLES:
PRINT FRE (0)
Returns the number of free bytes for BASIC programs.
58109
PRINT FRE (1)
Returns the number of free bytes for BASIC variable storage.
64256
HEX$
Return hexadecimal string equivalent to decimal number X
HEX$(X)
EXAMPLE:
PRINT HEX$(53280)
D020
INSTR
Return starting position of string 2 within string 1
INSTR (string 1, string 2 [,starting position])
EXAMPLE:
PRINT INSTR ("COMMODORE 128"," 128")
11
INT
Return integer form (truncated) of a floating point value
INT(X)
This function returns the integer value of the expression. If the expression is positive,
the fractional part is left out. If the expression is negative, any fraction causes the next
lower integer to be returned.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents