Download Print this page

Holtek HT49RU80 Manual page 44

Lcd type 8-bit mcu

Advertisement

CPLA [m]
Complement data memory and place result in the accumulator
Description
Each bit of the specified data memory is logically complemented (1¢s complement). Bits
which previously contained a 1 are changed to 0 and vice-versa. The complemented result
is stored in the accumulator and the contents of the data memory remain unchanged.
ACC ¬ [m]
Operation
Affected flag(s)
DAA [m]
Decimal-Adjust accumulator for addition
Description
The accumulator value is adjusted to the BCD (Binary Coded Decimal) code. The accumu-
lator is divided into two nibbles. Each nibble is adjusted to the BCD code and an internal
carry (AC1) will be done if the low nibble of the accumulator is greater than 9. The BCD ad-
justment is done by adding 6 to the original value if the original value is greater than 9 or a
carry (AC or C) is set; otherwise the original value remains unchanged. The result is stored
in the data memory and only the carry flag (C) may be affected.
Operation
If ACC.3~ACC.0 >9 or AC=1
then [m].3~[m].0 ¬ (ACC.3~ACC.0)+6, AC1=AC
else [m].3~[m].0 ¬ (ACC.3~ACC.0), AC1=0
and
If ACC.7~ACC.4+AC1 >9 or C=1
then [m].7~[m].4 ¬ ACC.7~ACC.4+6+AC1,C=1
else [m].7~[m].4 ¬ ACC.7~ACC.4+AC1,C=C
Affected flag(s)
DEC [m]
Decrement data memory
Description
Data in the specified data memory is decremented by 1.
[m] ¬ [m]-1
Operation
Affected flag(s)
DECA [m]
Decrement data memory and place result in the accumulator
Description
Data in the specified data memory is decremented by 1, leaving the result in the accumula-
tor. The contents of the data memory remain unchanged.
ACC ¬ [m]-1
Operation
Affected flag(s)
Rev. 1.10
TO
PDF
OV
¾
¾
¾
TO
PDF
OV
¾
¾
¾
TO
PDF
OV
¾
¾
¾
TO
PDF
OV
¾
¾
¾
44
HT49RU80/HT49CU80
Z
AC
C
Ö
¾
¾
Z
AC
C
¾
¾
Ö
Z
AC
C
Ö
¾
¾
Z
AC
C
Ö
¾
¾
March 2, 2007

Advertisement

loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Ht49cu80