CMPI


Synopsis:

Compare immediate to register.

Operation:

If Ra < Immediate

    Rt = -1

Else If Ra = Immediate

    Rt = 0

Else

    Rt = 1

Description:

This instruction compares a signed immediate value to a general purpose register and places the result in a general purpose register. This instruction will never cause an exception.

Format:

Opcode7 Ra5 Rt5 Immediate15
8 Ra5 Rt5 Immediate15