Elegant...and now we're down to 24 bytes of machine code!

Dan, is RISBGZ one of the instructions added to speed up Java garbage
collection?

Mike Shaw
MVS/QuickRef Support Group
Chicago-Soft, Ltd.


On Mon, Jan 31, 2022 at 4:08 PM Dan Greiner <dan_grei...@att.net> wrote:

> 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