Differences

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

Link to this comparison view

sys [2019/05/07 22:09]
neils created
sys [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()]]''​.