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.