PET VIC-20 C64 C16 Plus/4 C128 X16 M65
The SUB
keyword starts a subroutine block.
SUB <name> ([<arg> AS <type>[, <arg> AS <type>]...]) [OVERLOAD] [PRIVATE|SHARED] [STATIC] <statements> END SUB
()
must be includedOVERLOAD
keyword must be given if the function overloads another function with the same namePRIVATE
keyword indicates that the subroutine may only be called from within that TYPE block.SHARED
keyword indicates that the function is visible from within other code modulesSTATIC
keyword indicates that no stack frame is allocated on each subroutine call. See static_vs_dynamic