' Robotics with the Boe-Bot - OneSubroutine.bs2 ' This program demonstrates a simple subroutine call. ' {$STAMP BS2} ' {$PBASIC 2.5} DEBUG "Before subroutine",CR PAUSE 1000 GOSUB My_Subroutine DEBUG "After subroutine", CR END My_Subroutine: DEBUG "Command in subroutine", CR PAUSE 1000 RETURN