Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Intermec Online Guide - <b>conditional numeric subroutine call (s)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONDITIONAL NUMERIC SUBROUTINE CALL (S)

Purpose: Makes a decision about branching to a subroutine based on the
         result of a numeric expression.

Format:  Sn1 x n2 .label

Remarks: S         Subroutine call.

         n1        Numeric register or literal number; can also be [n1] to
                   get the length of a string in a file record or a string
                   register.

         x         < or = or >

         n2        Numeric register or literal number.

         .label    Label for program pointer to jump to.

         When the pointer encounters the S Command, the current location is
         automatically stored while the program jumps to the subroutine label.
         The program executes from the subroutine label until it encounters
         a Quit Subroutine Command (Q).  The pointer then returns to the
         step after the Subroutine Call command.

Examples:          If:                 And:                Then:

                   S#1=5678.Label      #1=5678             Jump to Label

                   S#1=#2              #1=678
                                       #2=678              Jump to Label

                   S#1<25.Label        #1=10               Jump to Label

                   S#1>#3.Label        #1=25               Don't
                                       #3=100              Jump to Label

                   S[A(1)]>5.Label     A(1) = 123          Don't
                                                           Jump to Label


         NOTE: The relative value of an alphanumeric character or punctuation
         mark is determined by its hexidecimal value.  Refer to the full
         ASCII chart for the hex value of each ASCII character.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson