chk
Check register against bounds
Checks a signed data-register word against zero and a signed upper bound, ending the run with a CHK exception when it is outside that range.
Size .w
XNZVC –●–––
- ● set from the result
- – not changed
Forms
Operands
<ea>- An operand using one of the instruction’s supported addressing modes, such as
d0,(a0)+or4(a1). It may name a register, memory or an immediate value. More Dn- A data register,
d0tod7. More #imm- An immediate value written after
#: a number, character or label, such as#10,#$FFor#'a'. It must fit the operation’s size: byte-128to255, word-32768to65535, or long-2147483648to4294967295; signed and unsigned spellings are accepted. More