The following code snippet does the trick, leaving the results in general 
registers 0 and 1.

LLC   0,BYTE
RISBGZ 1,0,62,63,-4
SRL   0,6
AHI   0,C'1'    (or CA'1' for results in ASCII)
AHI   1,C'1'     (or CA'1' for results in ASCII)

(I consider ROTATE THEN INSERT SELECTED BITS to be the sexiest instruction in 
the architecture.)

Reply via email to