11/3/71                                              SWITCH (III)





NAME            switch  --  switch on value



SYNOPSIS        (switch value in r0)

                jsr     r5,switch; swtab

                (not-found return)

                ...

         swtab: val1; lab1;

                ...

                valn; labn

                ..;  0



DESCRIPTION     switch compares the value of r0 against each of

                the val ; if a match is found, control is trans-
                       i
                ferred to the corresponding lab  (after popping
                                               i
                the stack once).  If no match has been found by

                the time a null lab  occurs, switch returns.
                                   i


FILES           kept in /etc/liba.a



SEE ALSO        --



DIAGNOSTICS     --



BUGS            --



OWNER           ken, dmr