IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
93
Table 3-5 Bit Operation Instructions
Assembler
Syntax
Description
Opcode
clrb fr,bit
Clear bit in fr
1
1000 bbbf ffff ffff
None
sb fr,bit
Test bit in fr then
skip if set
1/2
1011 bbbf ffff ffff
None
setb fr,bit
Set bit in fr
1
1001 bbbf ffff ffff
None
snb fr,bit
Test bit in fr then
skip if clear
1/2
1010 bbbf ffff ffff
None
Table 3-6 Data Movement Instructions
Assembler
Syntax
Description
Opcode
mov fr,w
Move W into fr
1
0000 001f ffff ffff
None
mov w,fr
Move fr into W
1
0010 000f ffff ffff
Z
mov w,#lit8
Move literal into
W
1
0111 1100 kkkk kkkk
None
push fr
Move fr onto top
of stack
1
0100 010f ffff ffff
None
push #lit8
Move literal onto
top of stack
1
0111 0100 kkkk kkkk
None
pop fr
Move top of
stack into fr
1
0100 011f ffff ffff
None