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 quit (q)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONDITIONAL NUMERIC SUBROUTINE QUIT (Q)

Purpose: Makes a decision about returning from a subroutine based on the
         result of a numeric expression.

Format:  Qn1 x n2 .label

Remarks: Q         Quit subroutine if expression is true.

         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.

         The pointer will return to the statement after the statement that
         called the subroutine if the Q statement is true.

Examples:          If:                 And:                Then:

                   Q#1=5678.Label      #1=5678             Quit and return

                   Q#1=#2              #1=678
                                       #2=678              Quit and return

                   Q#1<25.Label        #1=10               Quit and return

                   Q#1>#3.Label        #1=25               Don't
                                       #3=100              Quit

                   Q[A(1)]>5.Label     A(1) = 123          Don't
                                                           Quit


         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