One other option that generates a few bytes less code:

        IC      1,BYTE
        RISBGZ  0,1,54,55,2
        RISBGZ  1,1,62,63,-4
        OR      0,1
        AHI     0,C'11'

This puts the results in the rightmost two bytes of general register 0.

Reply via email to