Hitachi AP1 Data Book page 256

4-bit single-chip microcomputer
Table of Contents

Advertisement

HMCS404C--------------------------------------------------------------
Note) (XV) and (X) have the meaning as follows:
(1) The instructions with (XV) have 4 mnemonics and 4 object codes for each. (example of LAM (XV) is given below.)
MNEMONIC
y
x
FUNCTION
LAM
0
0
LAMX
0
:
1
X~SPX
LAM V
1
:
0
V~SPV
LAMXV
1
:
1
X
~SPX,
V
~SPV
(21
The instructions with (xl have 2 mnemonics and 2 object codes for each. (example of LMAIV (X) is given below.)
MNEMONIC
FUNCTION
LMAIV
LMAIVX
XHSPX
Table
26.
Arithmetic Instruction
OPERATION
MNEMONIC
OPERATION CODE
FUNCTION
STATUS
WORD .....
~LE
Add Immediate to A
AI
i
1 0 1 000 i3 i2 i, io
A+ i--+A
OVF
1/1
Increment B
IB
0001001100
B+1--+B
NZ
1/1
Decrement B
DB
001 1001 1 1 1
B-1--+B
NB
1/1
Decimal Adjust for Addition
DAA
0010100110
1/1
Decimal Adjust for Subtraction
DAS
0010101010
1/1
Negate A
NEGA
0001100000
A+1--+A
1/1
Complement B
COMB
0101000000
8--+B
1/1
Rotate Right A with Carry
ROTR
0010100000
1/1
Rotate Left A with Carry
ROTL
0010100001
1/1
Set Carry
SEC
0011 101111
1--+CA
1/1
Reset Carry
REC
0011101100
O--+CA
1/1
Test Carry
TC
0001 101111
CA
1/1
Add A to Memory
AM
0000001000
M+A--+A
OVF
1/1
Add A to Memory
AMD d
~9 Ja~) ~6 ~5 ~4
J3
~2 ~1 ~o
M+A--+A
OVF
2/2
Add A to Memory with Carry
AMC
0000011000
M+A+CA--+A
OVF
1/1
Add A to Memory with Carry
AMCD d
~.JA~)~.~ JJ3~2~1 ~o
M+A+CA--+A
OVF
2/2
Subtract A from Memory with Carry
SMC
0010011000
M-A-CA--+A
NB
1/1
Subtract A from Memory with Carry
SMCD d
~9~a~)~6~ ~J3~2~I~O
M-A-CA-+A
NB
2/2
OR A and B
OR
0101000100
AUB -+A
1/1
AND Memory with A
ANM
0010011100
MiM-+A
NZ
1/1
AND Memory with A
ANMD d
~9JaJ)~S~ JJ3J2~ ~o.
AnM--+A
NZ
2/2
OR Memory with A
ORM
0000001100
AUM-+A
NZ
1/1
OR Memory with A
ORMD d
~ J.~)~6~S~4J3J2~1 ~o
AUM--+A
NZ
2/2
EOR Memory with A
EORM
0000011100
AffiM--+A
NZ
1/1
EOR Memory with A
EORMD d
l! 1.l!qq 11.100
d9 da d) ds dsd4 d3 d2 dl do
AifJM-+A
NZ
2/2
254

Advertisement

Table of Contents
loading

Table of Contents