English
Language : 

COP413C Datasheet, PDF (13/16 Pages) National Semiconductor (TI) – Single-Chip CMOS Microcontrollers
COP413C Instruction Set (Continued)
TABLE III COP413C Instruction Set (Continued)
Mnemonic
Operand
Hex
Code
Machine
Language Code
(Binary)
Data Flow
Skip Conditions
MEMORY REFERENCE INSTRUCTIONS (Continued)
XDS
r
b7
00 r 0111 RAM(B)
A
Bd – 1 x Bd
x Br Z r
Br
Bd decrements past 0
Description
Exchange RAM with A
and Decrement Bd
Exclusive-OR Br with r
XIS
r
b4
00 r 0100
REGISTER REFERENCE INSTRUCTIONS
CAB
50
0101 0000
RAM(B)
A
Bd a 1 x Bd
x Br Z r
Br
A x Bd
Bd increments past 15
Exchange RAM with A
and Increment Bd
Exclusive-OR Br with r
None
Copy A to Bd
CBA
4E
x 0100 1110 Bd A
None
Copy Bd to A
LBI
rd
–
x 00 r (d - 1) r d B
(d e 0 9 15)
Skip until not a LBI
Load B Immediate with
rd
LEI
y
33
6b
TEST INSTRUCTIONS
SKC
20
0011 0011
0010 y
y x EN
0010 0000
None
C e ‘‘1’’
Load EN Immediate
Skip if C is True
SKE
21
0010 0001
A e RAM(B)
Skip if A Equals RAM
SKGZ
33
0011 0011
21
0010 0001
G3 0 e 0
Skip if G is Zero
(all 4 bits)
SKGBZ
33
0011 0011
0
01
0000 0001
1
11
0001 0001
2
03
0000 0011
3
13
0010 0011
SKMBZ
0
01
0000 0001
1
11
0001 0001
2
03
0000 0011
3
13
0001 0011
INPUT OUTPUT INSTRUCTIONS
ING
33
0011 0011
2A
0010 1010
1st byte
2nd byte
*
GxA
G0 e 0
G1 e 0
G2 e 0
G3 e 0
RAM(B)0 e 0
RAM(B)1 e 0
RAM(B)2 e 0
RAM(B)3 e 0
None
Skip if G Bit is Zero
Skip if RAM Bit is Zero
Input G Ports to A
INL
OMG
33
x 0011 0011
L7 4
RAM(B)
2E
x 0010 1110
L3 0
A
33
x 0011 0011 RAM(B) G
3A
0011 1010
None
None
Input L Ports to RAM A
Output RAM to G Ports
XAS
4F
0100 1111 A
x SIO C SKL None
Exchange A with SIO
Note 1 The JP instruction allows a jump while in subroutine pages 2 or 3 to any ROM location within the two-page boundary of pages 2 or 3 The JP instruction
otherwise permits a jump to a ROM location within the current 64-word page JP may not jump to the last word of a page
Note 2 A JSRP transfers program control to subroutine page 2 (0010 is loaded into the upper 4 bits of P) A JSRP may not be used when in pages 2 or 3 JSRP
may not jump to the last word in page 2
13