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 goto (if...then) (g)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONDITIONAL NUMERIC GOTO (If...Then) (G)

Purpose: Makes a decision about program flow based on the result of a
         numeric expression.

Format:  Gn1 x n2 .label

Remarks: G         GOTO

         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.

Examples:          If:                 And:                Then:

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

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

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

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

                   G[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