Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
SYS
Syntax:
sys <int address>
The SYS
command calls a machine language routine at the specified address.
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()
.