hpc36164 National Semiconductor Corporation, hpc36164 Datasheet - Page 32

no-image

hpc36164

Manufacturer Part Number
hpc36164
Description
High-performance Microcontroller With A/d
Manufacturer
National Semiconductor Corporation
Datasheet
BIT INSTRUCTIONS
MEMORY TRANSFER INSTRUCTIONS
REGISTER LOAD IMMEDIATE INSTRUCTIONS
ACCUMULATOR AND C INSTRUCTIONS
TRANSFER OF CONTROL INSTRUCTIONS
HPC Instruction Set Description
Note W is 16-bit word of memory
Mnemonic
SBIT
RBIT
IFBIT
LD
ST
X
PUSH
POP
LDS
XS
LD B
LD K
LD X
LD BK
CLR A
INC A
DEC A
COMP A
SWAP A
RRC A
RLC A
SHR A
SHL A
SC
RC
IFC
IFNC
JSRP
JSR
JSRL
JP
JMP
JMPL
JID
JIDW
NOP
RET
RETSK
RETI
MA is Accumulator A or direct memory (8- or 16-bit)
Mem is 8-bit byte or 16-bit word of memory
MemI is 8- or 16-bit memory or 8- or 16-bit immediate data
imm is 8-bit or 16-bit immediate data
imm8 is 8-bit immediate data only
Set bit
Reset bit
If bit
Load
Load incr decr X
Store to Memory
Exchange
Exchange incr decr X
Push Memory to Stack
Pop Stack to Memory
Load A incr decr B
Exchange incr decr B
Load B immediate
Load K immediate
Load X immediate
Load B and K immediate
Clear A
Increment A
Decrement A
Complement A
Swap nibbles of A
Rotate A right thru C
Rotate A left thru C
Shift A right
Shift A left
Set C
Reset C
IF C
IF not C
Jump subroutine from table
Jump subroutine relative
Jump subroutine long
Jump relative short
Jump relative
Jump relative long
Jump indirect at PC
No Operation
Return
Return then skip next
Return from interrupt
Skip on condition
Skip on condition
Description
a
A
(Continued)
32
1
0
If Mem bit is true do next instr
MemI
Mem(X)
A
A
A
W
SP
Mem(B)
Mem(B)
imm
imm
imm
imm
0
A
A
1’s complement of A
A15 12
C
C
0
C
1
0
Do next if C
Do next if C
PC
PC
PC
PC
PC
PC
PC
PC
SP
SP
SP
x
x
x
x
x
x
x
x
w
w
b
x
Skip next if B greater less than K
Skip next if B greater less than K
a
W(table )
( is
then Mem(PC)
b
b
b
b
x
x
x
a
a
a
a
a
x
x
x
x
1
2
1
2
2
2
A
Mem bit
Mem bit
x
A
A15
C
C
Mem
A15
A15
A15
x
W(SP) SP
x
x
1
x
x
x
a
w
W(SP) SP
W(SP) SP
a
W(SP) SP
Mem
Mem(X) X
x
x
x
x
x
x
B
K
X
B imm
1
1025 to
x
MA
w
A
A
x
w
x
SP W(SP)
SP W(SP)
SP W(SP)
SP W(SP)
A11 8
PC(
PC( is
PC
e
e
A X
A B
PC
x
A B
PC
x
1
0
a
g
a
PC
g
a
a
a
w
b
is
x
w
g
g
x
w
PC
1 (or 2)
1 (or 2)
2
K
2
2
2
a
1023)
a
x
x
1 (or 2)
x
x
x
Action
1 (or 2)
x
x
x
x
A7 4
257 to
x
A0
32 to
A0
A0
A0
SP
A
PC
PC
PC interrupt re-enabled
x
SP
SP PC
SP PC
W
w
x
w
x
PC
x
x
x
b
b
C
0
31)
C
C
X
B
255)
skip
a
a
X
B
A3 0
x
x
PC
PC

Related parts for hpc36164