SX Users Manual Rev. 3.1
© 2000 Scenix Semiconductor, Inc. All rights reserved.
Chapter 3 Instruction Set
3.6.12 DEC fr
fr = fr -1
0000 111f ffff
This instruction decrements the specified register file by one.
If the file register contains 01h, it is decremented to 00h and the Z bit is set.
Otherwise, the bit is cleared.
If the file register contains 00h, it is decremented to FFh.
This example decrements file register 18h.