Sub

Define a sub procedure

Syntax: Sub procedureName([parameter list]) [IntHigh] [IntLow]

procedureName

Required. Any valid procedure name

parameter list

Optional. A list of comma seperated parameter variable definitions

IntHigh Optional Make this procedure the high priority interrupt service routine
IntLow Optional. Make this procedure the low priority interrupt service routine

 

Example:

Sub proc1()   ' define a procedure with no parameters

Sub proc2(x As uByte, y As uInteger)  ' define a procedure with two
                                      ' parameters

Sub proc3() IntHigh   ' define a high priority interrupt routine

Sub proc4() IntLow    ' define a low priority interrupt routine

Also See: Function, Interrupts