English
Language : 

COP404C Datasheet, PDF (12/18 Pages) National Semiconductor (TI) – COP404C ROMless CMOS Microcontrollers
Instruction Set (Continued)
TABLE III COP404C Instruction Set (Continued)
Mnemonic
SMB
STII
X
XAD
XDS
XIS
Operand
0
1
2
3
y
r
rd
r
r
Hex
Code
4D
47
46
4B
7b
b6
23
b7
b4
Machine
Language
Code
(Binary)
l0100l1101l
l0100l0111l
l0100l0110l
l0100l1011l
l0111l y l
l00l r l0110l
(re0 3)
l0010l0011l
l1l r l d l
l00l r l0111l
(re0 3)
l00l r l0100l
(re0 3)
Data Flow
x 1
RAM(B)0
x 1
RAM(B)1
x 1
RAM(B)2
x 1
RAM(B)3
y x RAM(B)
Bd a 1 x Bd
RAM(B)
A
x Br Z r
Br
RAM(r d)
A
RAM(B)
A
Bdb1 x Bd
x Br Z r
Br
RAM(B)
A
Bda1 x Bd
x Br Z r
Br
Skip
Conditions
None
None
None
None
Bd
decrements
past 0
Bd
increments
past 15
Description
Set RAM Bit
Store Memory Immediate
and Increment Bd
Exchange RAM with A
Exclusive-OR Br with r
Exchange A with RAM
pointed to directly by r d
Exchange RAM with A
and Decrement Bd
Exclusive-OR Br with r
Exchange RAM with A
and Increment Bd
Exclusive-OR Br with r
REGISTER REFERENCE INSTRUCTIONS
CAB
CBA
LBI
LEI
XABR
50
l0101l0000l
4E
l0100l1110l
rd
l00l r l(d-1)l
(re0 3
de0 9 15)
or
33
l0011l0011l
l1l r l d l
(any r any d)
y
33
l0011l0011l
6b l0110l y l
12
l0001l0010l
A x Bd
Bd x A
rdxB
y x EN
A
Br
None
None
Skip until
not a LBI
Copy A to Bd
Copy Bd to A
Load B Immediate with r d
(Note 5)
None
None
Load EN Immediate (Note 6)
Exchange A with Br (Note 7)
TEST INSTRUCTIONS
SKC
SKE
SKGZ
SKGBZ
0
1
2
3
SKMBZ
0
1
2
3
SKT
20
l0010l0000l
21
l0010l0001l
33
l0011l0011l
21
l0010l0001l
33
l0011l0011l
1st byte
01
l0000l0001l
11
03
l0001l0001l
l0000l0011l
2nd byte
13
l0001l0011l
01
l0000l0001l
11
l0001l0001l
03
l0000l0011l
13
l0001l0011l
41
l0100l0001l
Ce‘‘1’’
AeRAM(B)
G3 0e0
G0e0
G1e0
G2e0
G3e0
RAM(B)0e0
RAM(B)1e0
RAM(B)2e0
RAM(B)3e0
A time-base
counter
carry has
occured
since last test
Skip if C is True
Skip if A Equals RAM
Skip if G is Zero
(all 4 bits)
Skip if G Bit is Zero
Skip if RAM Bit is Zero
Skip on Timer
(Note 2)
12