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

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
command_reference [2019/10/07 11:51] neilscommand_reference [2020/08/13 07:03] neils
Line 2: Line 2:
  
 The following is the list of all commands, functions and directives supported by the current version of **XC=BASIC**, in alphabetical order: The following is the list of all commands, functions and directives supported by the current version of **XC=BASIC**, in alphabetical order:
 +
 +===== Core commands =====
  
 <html><div class="threecol"></html> <html><div class="threecol"></html>
Line 25: Line 27:
   * [[FERR|FERR()]]   * [[FERR|FERR()]]
   * [[FORNEXT|FOR ... NEXT]]   * [[FORNEXT|FOR ... NEXT]]
 +  * [[fun|FUN ... ENDFUN]]
   * [[GOSUBRETURN|GOSUB ... RETURN]]   * [[GOSUBRETURN|GOSUB ... RETURN]]
   * [[GOTO|GOTO]]   * [[GOTO|GOTO]]
Line 67: Line 70:
   * [[WATCH|WATCH]]   * [[WATCH|WATCH]]
   * [[while|WHILE ... ENDWHILE]]   * [[while|WHILE ... ENDWHILE]]
 +
 +<html></div></html>
 +
 +===== Commands added by extensions =====
 +
 +The following commands are provided by specific extensions that must be included in your project before using them. You can read more about extensions [[extensions|here]].
 +
 +==== Sprites ====
 +
 +<html><div class="threecol"></html>
 +
 +  * [[SPR_BEHINDBG|SPR_BEHINDBG]]
 +  * [[SPR_CLEARDBLHEIGHT|SPR_CLEARDBLHEIGHT]]
 +  * [[SPR_CLEARDBLWIDTH|SPR_CLEARDBLWIDTH]]
 +  * [[SPR_DATA_COLLISION|SPR_DATA_COLLISION()]]
 +  * [[SPR_DISABLE|SPR_DISABLE]]
 +  * [[SPR_ENABLE|SPR_ENABLE]]
 +  * [[SPR_OVERBG|SPR_OVERBG]]
 +  * [[SPR_SETCOLOR|SPR_SETCOLOR]]
 +  * [[SPR_SETDBLHEIGHT|SPR_SETDBLHEIGHT]]
 +  * [[SPR_SETDBLWIDTH|SPR_SETDBLWIDTH]]
 +  * [[SPR_SETHIRES|SPR_SETHIRES]]
 +  * [[SPR_SETMULTI|SPR_SETMULTI]]
 +  * [[SPR_SETPOS|SPR_SETPOS]]
 +  * [[SPR_SETPOSX|SPR_SETPOSX]]
 +  * [[SPR_SETPOSY|SPR_SETPOSY]]
 +  * [[SPR_SETSHAPE|SPR_SETSHAPE]]
 +  * [[SPR_SPR_COLLISION|SPR_SPR_COLLISION()]]
 +
 +<html></div></html>
 +
 +==== Joystick ====
 +
 +<html><div class="threecol"></html>
 +
 +  * [[JOY_1_UP|JOY_1_UP()]]
 +  * [[JOY_1_DOWN|JOY_1_DOWN()]]
 +  * [[JOY_1_LEFT|JOY_1_LEFT()]]
 +  * [[JOY_1_RIGHT|JOY_1_RIGHT()]]
 +  * [[JOY_1_FIRE|JOY_1_FIRE()]]
 +  * [[JOY_2_UP|JOY_2_UP()]]
 +  * [[JOY_2_DOWN|JOY_2_DOWN()]]
 +  * [[JOY_2_LEFT|JOY_2_LEFT()]]
 +  * [[JOY_2_RIGHT|JOY_2_RIGHT()]]
 +  * [[JOY_2_FIRE|JOY_2_FIRE()]]
  
 <html></div></html> <html></div></html>