Warning

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

Procedures

XC=BASIC supports the procedural style of programming through the PROC ... ENDPROC statements. To call a procedure, use the CALL command.

A procedure is similar to a subroutine, except that

  • A procedure opens a unique variable and label scope
  • A procedure can have zero or more parameters
  • A procedure can call itself without overwriting the local variables (recursion)

Please see the documentation of PROC ... ENDPROC for more information.