On 23/11/2021 17:12, Seymour J Metz wrote:
          LTR   R15,R15
          JM    BADIX
          CHI   R15,LIMIT
          JH    BADIX
          TML   R15,3
          JNZ   BADIX
          J     *+4(R15)
BRTAB    EQU   *
          J     RC0ROUTINE
          J     RC4ROUTINE
          J     RC8ROUTINE
LIMIT    EQU   *-BRTAB

Three test and branch instruction pairs plus two unconditional
branch instructions, all to avoid executing a sequence
of up to three test and branch instruction pairs :-)

--
                        Martin

Dr Martin Ward | Email: mar...@gkc.org.uk | http://www.gkc.org.uk
G.K.Chesterton site: http://www.gkc.org.uk/gkc | Erdos number: 4

Reply via email to