SWITCH(III)                  3/15/72                  SWITCH(III)







NAME

     switch - switch on value



SYNOPSIS

             (switch value in r0)

             jsrr5,switch; swtab

             (not-found return)

             ...

     swtab:  val1; lab1;

             ...

             valn;labn

             ..;  0



DESCRIPTION

     Switch compares the value of r0 against each of the val ; if
                                                            i
     a   match   is   found,   control   is  transferred  to  the

     corresponding lab  (after popping the stack  once).   If  no
                      i
     match  has been found by the time a null lab  occurs, switch
                                                 i
     returns.



BUGS