Holtek HT827A0 Manual page 45

8-bit microcontroller with voice rom
Table of Contents

Advertisement

SUB A,[m]
Subtract data memory from the accumulator
Description
The specified data memory is subtracted from the contents of the accumula-
tor, leaving the result in the accumulator.
Operation
ACC ¬ ACC+[m]+1
Affected flag(s)
TC2
¾
SUBM A,[m]
Subtract data memory from the accumulator
Description
The specified data memory is subtracted from the contents of the accumula-
tor, leaving the result in the data memory.
Operation
[m] ¬ ACC+[m]+1
Affected flag(s)
TC2
¾
SUB A,x
Subtract immediate data from the accumulator
Description
The immediate data specified by the code is subtracted from the contents of
the accumulator, leaving the result in the accumulator.
Operation
ACC ¬ ACC+x+1
Affected flag(s)
TC2
¾
SWAP [m]
Swap nibbles within the data memory
Description
The low-order and high-order nibbles of the specified data memory (one of the
data memory) are interchanged.
Operation
[m].3~[m].0 « [m].7~[m].4
Affected flag(s)
TC2
¾
TC1
TO
PD
OV
¾
¾
¾
Ö
TC1
TO
PD
OV
¾
¾
¾
Ö
TC1
TO
PD
OV
¾
¾
¾
Ö
TC1
TO
PD
OV
¾
¾
¾
¾
45
HT827A0
Z
AC
C
Ö
Ö
Ö
Z
AC
C
Ö
Ö
Ö
Z
AC
C
Ö
Ö
Ö
Z
AC
C
¾
¾
¾
March 15, 2000

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT827A0 and is the answer not in the manual?

Table of Contents