Hitachi AP1 Data Book page 289

4-bit single-chip microcomputer
Table of Contents

Advertisement

--------------------------------------------------------------HD614P080S
Notel (XYI and (xl have the meaning as follows:
(11
The instructions with (XYI have 4 mnemonics and 4 object codes for each. (eltample of LAM (XYI is given below.l
MNEMONIC
y
x
FUNCTION
LAM
0
0
LAMX
0
1
X"SPX
LAMY
1
0
Y"SPY
LAMXY
1
1
X "SPX, Y "Spy
(21 The instructions with (xl have 2 mnemonics and 2 object codes for each. (example of LMAIY (XI 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 0 1 000 iJ i2 i1 io
A+ i--A
OVF
1/1
Increment B
IB
0001001100
B+1--B
NZ
1/1
Decrement B
DB
0011001111
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
13--B
1/1
Rotate Right A with Carry
ROTR
0010100000
1/1
Rotate Left A with Carry
ROTL
0010100001
1/1
Set Carry
SEC
001 1 101 1 1 1
1--CA
1/1
Reset Carry
REC
001 1 101 100
O--CA
1/1
Test Carry
TC
0001 101 111
CA
1/1
Add A to Memory
AM
0000001000
M+A--A
OVF
1/1
Add A to Memory
AMD d
~9 Je~, ~6 ~s ~J3 ~2 ~,
&
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
~e~, ~~&_JJ3 ~2 ~,
&
M+A+CA--A
OVF
2/2
Subtract A fram Memory with Carry
SMC
0010011000
M-A-CA--A
NB
1/1
Subtract A from Memory with Carry
SMCD
d
~9 ~e
J,
~6 ~s
J4 J3
~2 ~,
&
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
~9~e~, ~6~S ~4~3~2 ~, ~o
AnM--A
NZ
2/2
OR Memory with A
ORM
0000001100
AUM--A
NZ
1/1
OR Memory with A
ORMD d
~9 ~e~, ~6 ~s ~JJ2 ~,
&
AUM--A
NZ
2/2
EOR Memory with A
EORM
0000011100
Alf,M--A
NZ
1/1
EOR Memory with A
EORMD d
~9~e~7~6~s~4~3~2~, ~o
Alf,;M--A
NZ
2/2
287

Advertisement

Table of Contents
loading

Table of Contents