SAT24 (24-bit saturation instruction)
[Instruction format (macro name)]
SAT24 Dm, Dn
[Assembler mnemonic]
udf05 Dm, Dn
[Operation]
This instruction stores the 24-bit signed positive maximum value (0x007fffff) and the 24-bit signed negative
maximum value (0xff800000) in Dn respectively when Dm is equal to or greater than the positive maximum
value (0x007fffff) and equal to or smaller than the negative maximum value (0xff800000). In any other case, the
instruction stores the content of Dm in Dn.
[Flag changes]
Flag
Change
Condition
V
*
Undefined
C
*
Undefined
N
+
"1" if the MSB of the operation result is "1." "0" in any other case.
Z
+
"1" if the operation result is "0s." "0" in any other case.
[Note for programming]
Updating of the PSW as a result of flag changes is delayed by 1 instruction.
Note, however, that flags can be evaluated for the Bcc and Lcc instructions before flag changes are reflected in the
PSW.
Extension Instruction Specification
Chapter 16
Appendix
XVI - 63