Hitachi AP1 Data Book page 369

4-bit single-chip microcomputer
Table of Contents

Advertisement

---------------------------------------------------------------------------HMCS404CL
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
WORD/"
OPERATION
MNEMONIC
OPERATION CODE
FUNCTION
STATUS
~LE
Add Immediate to A
AI
i
1 0 1 0 0 0
iJ
b i 1 io
A+ i---A
OVF
1/1
Increment B
IB
0001001 100
B+l---B
NZ
1/1
Decrement B
DB
0011001 1 11
B-l---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
B---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 101 1 1 1
l---CA
1/1
Reset Carry
REC
0011 101100
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
~g d8~) ~6 ~s ~4
J
3
~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
~9d8~)~6~sd4d3~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
~9J8J) ~6~SJ4J3 ~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
~9JsJ) ~6~S
J4J3J
~I ~a
AnM-+A
NZ
2/2
OR Memory with A
ORM
0000001100
AUM-+A
NZ
1/1
OR Memory with A
ORMD d
~9J8~)~6~s~4J3J2~1 ~o
AUM---A
NZ
2/2
EOR Memory with A
EORM
0000011100
A(£lM-+A
NZ
1/1
EOR Memory with A
EORMD d
l-!l.1I1111
111O O
dg
ds d) d6 ds d4 d3 d2 dido
AEtJM-+A
NZ
2/2
367

Advertisement

Table of Contents
loading

Table of Contents