SGN

Synopsis:

Sign of register.

Operation:

if Ra < 0

    Rt = -1

else if Ra > 0

    Rt = 1

else

    Rt = 0

Description:

This instruction returns the sign of a general purpose register and places the result in a general purpose register.

Format:

Opcode7 Ra5 Rt5 Reserved9 Func6
1 Ra5 Rt5 ---- 8