Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  113
Chapter 2 Program Instructions
GOSUB, cont.
Examples, cont.
 In this examples, line numbers have been omitted and line labels are used 
to make the program branch to subroutines:
  IMMEDIATE OFF
  PRINT "This is the main program"
  GOSUB SUB1
  PRINT "You’re back in the main program"
  END
  SUB1: PRINT "This is subroutine 1"
  GOSUB SUB2
  PRINT "You’re back from subroutine 2 to 1"
  RETURN
  SUB2: PRINT "This is subroutine 2"
  GOSUB SUB3
  PRINT "You’re back from subroutine 3 to 2"
  RETURN
  SUB3: PRINT "This is subroutine 3"
  PRINT "You’re leaving subroutine 3"
  RETURN










