Hitachi AP1 Data Book page 331

4-bit single-chip microcomputer
Table of Contents

Advertisement

--------------------------------------------------------------------------HMCS404AC
Note) (XY) and (X) have the meaning as follows:
(1) The instructions with (XY) have 4 mnemonics and 4 object codes for each. (example of LAM (XY) is given below.)
MNEMONIC
y
x
FUNCTION
LAM
0
0
LAMX
0
:
1
X~SPX
LAMY
1
:
0
Y~SPY
LAMXY
1
:
1
X
~SPX.
Y
~SPY
(2)
The instructions with
(X)
have
2
mnemonics and
2
object codes for each. (example of LMAIY (X) is given below.)
MNEMONIC
FUNCTION
LMAIY
LMAIYX
X~SPX
Table
26.
Arithmetic Instruction
Z
OPERATION
MNEMONIC
OPERATION CODE
FUNCTION
STATUS
CYCLE
Add Immediate to A
AI
i
1 01 000 b i2 il io
A+ i-A
OVF
1/1
Increment B
IB
0001001100
B+ 1-B
NZ
1/1
Decrement B
DB
0011001 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
e-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 1011 1 1
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
~9J8~7 ~6 ~s ~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
~ J8~7~6~SJJ3~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
Je J7
~e ~5
J4 J3
~2 ~1 ~o
M-A-CA-A
NB
2/2
OR A and B
OR
0101000100
AUB-A
1/1
AND Memory with A
ANM
0010011100
AnM-A
NZ
1/1
AND Memory with A
ANMD d
~gJe~ ~B~JJ1J2~'&
AnM-A
NZ
2/2
OR Memory with A
ORM
0000001100
AUM-A
NZ
1/1
OR Memory with A
ORMD d
~9JB~7~ ~ &JJ2~1
&
AUM-A
NZ
2/2
EOR Memory with A
EORM
0000011100
A~M-A
NZ
1/1
EOR Memory with A
EORMD d
~9 ~B ~7 ~6~S ~4 ~3
J2
~1 ~o
A~M-A
NZ
2/2
329

Advertisement

Table of Contents
loading

Table of Contents