IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
225
TEST fr
Test fr for Zero
Operation:
if fr = 0, Z = 1
else Z = 0
Bits affected:
Z
Opcode:
0010 001f ffff ffff
Description:
This instruction moves the contents of the
specified data memory location into the same
register. There is no net effect except to set or
clear the Z bit. If the register holds zero, the bit is
set. Otherwise, the bit is cleared. If the test
instruction is performed on the T0TMR register,
the Timer 0 prescaler is initialized to zero. If the
prescaler is about to expire causing Timer 0 to
increment and the test instruction is executed,
Timer 0 will not increment.
Cycles:
1