English
Language : 

GMS30C2116 Datasheet, PDF (207/322 Pages) Hynix Semiconductor – USERS MANUAL
Appendix A. Instruction Set Details
Compare Bit with Immediate
A-33
CMPBI
Format:
Rimm format
15
10 9 8 7
43
0
OP-code
dn
Rd-code
n
0111 00
imm1
imm2
d = 0: Rd-code encoded G0..G15 for Rd
d = 0: Rd-code encoded L0..L15 for Rd
n: bit 8 // bit 3..0 encode n = 0..31, see Table 2.3 Encoding of Immediate Values
Notation:
CMPBI Rd, imm
CMPBI Rd, ANYBZ (when n = 0)
Description:
The result of a bitwise logical AND of the immediate operand and the destination operand
is used to set or clear the Z flag accordingly; the result itself is not retained.
All operands and the result are interpreted as bit-string of 32 bits each.
A special case of CMPBI differentiated by n = 0, if any byte of the destination operand is
zero then the zero flag Z is set (Z = 1).
Operation:
If n is not zero then
Z := (Rd and imm);
else
Z := Rd(31..24) = 0 or Rd(23..16) = 0 or
Rd(15..8) = 0 or Rd(7..0) = 0
Exceptions:
None