Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sys [2019/05/07 22:09] – created neilssys [2019/05/07 22:10] (current) neils
Line 7: Line 7:
 The ''SYS'' command calls a machine language routine at the specified address.  The ''SYS'' command calls a machine language routine at the specified address. 
  
-The expression must return an integer and will be treated as unsigned. Once the machine language routine returns using the ''RTS'' opcode, the **XC=BASIC** program will continue at the next line.+The expression must evaluate to an integer and will be treated as unsigned. Once the machine language routine returns using the ''RTS'' opcode, the **XC=BASIC** program will continue at the next line.
  
 Note that ''SYS'' can't pass parameters to the machine language routine, nor can get any return value. For calling machine language functions, see ''[[USR|USR()]]''. Note that ''SYS'' can't pass parameters to the machine language routine, nor can get any return value. For calling machine language functions, see ''[[USR|USR()]]''.