![](http://datasheet.mmic.net.cn/330000/MB90P224A_datasheet_16438134/MB90P224A_99.png)
99
MB90220 Series
Table 22 Other Control Instructions (Byte/Word/Long Word) [36 Instructions]
For an explanation of “(a)” and “(c)”, refer to Tables 4 and 5.
*1: PCB, ADB, SSB, USB, and SPB: 1 cycle
DTB: 2 cycles
DPR: 3 cycles
*2: 3 + 4
×
(pop count)
*3: 3 + 4
×
(push count)
*4: Pop count
×
(c), or push count
×
(c)
*5: 3 when AL is 0, 5 when AL is not 0.
*6: 4 when AL is 0, 6 when AL is not 0.
*7: 5 when AL is 0, 7 when AL is not 0.
Mnemonic
#
cycles
B
Operation
LH AH I
S
T
N
Z
V
C RMW
PUSHW A
PUSHW AH
PUSHW PS
PUSHW rlst
POPW
POPW
POPW
POPW
A
AH
PS
rlst
JCTX
@A
AND
OR
CCR, #imm8
CCR, #imm8
MOV RP, #imm8
MOV ILM, #imm8
MOVEA RWi, ear
MOVEA RWi, eam
MOVEA A, ear
MOVEA A, eam
ADDSP #imm8
ADDSP #imm16
MOV
MOV
MOV
A, brgl
brg2, A
brg2, #mm8
NOP
ADB
DTB
PCB
SPB
NCC
CMR
MOVW SPCU, #mm16
MOVW SPCL, #mm16
SETSPC
CLRSPC
BTSCN A
BTSCNS
A
BTSCND
A
1
1
1
2
1
1
1
2
1
2
2
2
2
2
2+
2
2+
2
3
2
2
3
1
1
1
1
1
1
1
4
4
2
2
2
2
2
3
3
3
*
3
3
3
3
*
2
9
3
3
2
2
3
2+ (a)
2
1+ (a)
3
3
*
1
1
2
1
1
1
1
1
1
1
2
2
2
2
*
5
*
6
*
7
(c)
(c)
(c)
*
4
(c)
(c)
(c)
*
4
6
×
(c)
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
word (SP)
←
(SP) –2, ((SP))
←
(A)
word (SP)
←
(SP) –2, ((SP))
←
(AH)
word (SP)
←
(SP) –2, ((SP))
←
(PS)
(SP)
←
(SP) –2n, ((SP))
←
(rlst)
word (A)
←
((SP)), (SP)
← (
SP) +2
word (AH)
←
((SP)), (SP)
← (
SP) +2
word (PS)
←
((SP)), (SP)
← (
SP) +2
(rlst)
←
((SP)) , (SP)
←
(SP)
Context switch instruction
byte (CCR)
←
(CCR) and imm8
byte (CCR)
←
(CCR) or imm8
byte (RP)
←
imm8
byte (ILM)
←
imm8
word (RWi)
←
ear
word (RWi)
←
eam
word(A)
←
ear
word (A)
←
eam
word (SP)
←
ext (imm8)
word (SP)
←
imm16
byte (A)
←
(brgl)
byte (brg2)
←
(A)
byte (brg2)
←
imm8
No operation
Prefix code for AD space access
Prefix code for DT space access
Prefix code for PC space access
Prefix code for SP space access
Prefix code for no flag change
Prefix code for the commonregister bank
word (SPCU)
←
(imm16)
word (SPCL)
←
(imm16)
Stack check ooperation enable
Stack check ooperation disable
byte (A)
←
positionof “1” bit inword (A)
byte (A)
←
positionof “1” bit inword (A)
×
2
byte (A)
←
positionof “1” bit inword (A)
×
4
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Z
–
–
–
–
–
–
–
–
–
–
–
–
–
Z
Z
Z
–
–
–
–
*
–
–
–
–
–
–
–
–
–
–
*
*
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
*
*
*
–
–
–
–
–
–
–
–
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
*
*
*
–
–
–
–
–
–
–
–
*
*
*
–
–
–
–
–
–
–
–
–
–
–
*
*
*
–
–
–
–
–
–
*
–
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–