BASIC commands
PROGRAMMING MANUAL 62
Revision 1.0
3.2.51 CHECKSUM
/i
3.2.52 CHR
/i
3.2.53 CLEAR
/i
3.2.54 CLEAR_BIT
/i
Type System parameter (read-only)
Syntax CHECKSUM
Description The CHECKSUM parameter contains the checksum for the programs in RAM.
At start-up, the checksum is recalculated and compared with the previously
held value. If the checksum is incorrect the program will not run.
Arguments N/A
Example No example.
See also N/A
Type I/O command
Syntax CHR(x)
Description The CHR command is used to send individual ASCII characters which are
referred to by number. PRINT CHR(x); is equivalent to PUT(x) in some other
versions of BASIC.
Arguments • x
A BASIC expression.
Example >>PRINT CHR(65);
A
See also N/A
Type System command
Syntax CLEAR
Description The CLEAR command resets all global VR variables to 0 and sets local varia-
bles on the process on which the command is run to 0. When you use it in a
program it resets all local variables defined to 0.
Arguments N/A
Example >>VR(0)=22: VR(20)=44.3158: VR(300)=-12
>>PRINT VR(0), VR(20), VR(300)
22.0000 44.3158 -12.0000
>>CLEAR
>>PRINT VR(0), VR(20), VR(300)
0.0000 0.0000 0.0000
See also • RESET, VR
Type System command
Syntax CLEAR_BIT(bit_number, vr_number)
Description The CLEAR_BIT command resets the specified bit in the specified VR varia-
ble. Other bits in the variable keep their values.
Arguments • bit_number
The number of the bit to be reset. Range: 0 - 52.
• vr_number
The number of the VR variable for which the bit will be reset. Range: 0 -
63999.
Example >>PRINT VR(17)
112.0000
>>CLEAR_BIT(5, 17)
>>PRINT VR(17)
80.0000
See also READ_BIT, SET_BIT, VR.