function/USR function/USR NAME USR -- Executes a machine language program with a parameter ABBREVIATION u <shift> S SYNOPSIS USR(<parameter>) FUNCTION When this function is used, the program jumps to a machine language program whose starting point is contained in memory locations 1281 (lower byte of the 16 bit memory address) and 1282 (higher byte of the 16 bit memory address). The parameter <parameter> is passed to the machine language program in the floating point accumulator. Another number is passed back to the BASIC program (by the machine language program) through the calling variable. In other words, this allows you to exchange a variable between machine code and BASIC. INPUTS <parameter> - numeric value to be passed to the machine language program RESULT USR calls a machine language program with a given numeric parameter. While exiting machine language program passes a another number back to the BASIC. EXAMPLES None NOTES I don't exactly know how the machine language program passes the value back to the BASIC. Maybe there is a special variable for this? I don't know. BUGS None SEE ALSO MONITOR SYS