Contents / Reference section / BASIC keywords / Previous letter / Next letter / Index
Part of the REPEAT...UNTIL construct. See the keyword REPEAT for more details
450 UNTIL X<10
A program object signifying the end of a REPEAT...UNTIL loop.
UNTIL <testable condition>
REPEAT
The USR function provides the user with a means of calling sections of machine code program which are designed to return one value. When the machine code section is called the computer sets the processor's A,X and Y registers to the least significant bytes of A%, X% and Y%. The carry flag (C) is set to the least significant bit of C%. On return from the machine code section, an integer number is generated from the four registers P,Y,X,A (most significant byte to least significant byte).
Again it must be emphasised that USR returns a result whereas CALL does not. Therefore you must either assign the result to a variable
X=USR(&3000)
or print the result
PRINT USR(&3000)
1400 R=USR(&3000)
670 result=USR(plot5)
A function allowing machine code to directly return a value for problems which do not require the flexibility of CALL.
<num-var>=USR(<numeric>)
CALL