English
Language : 

H49R50A-1 Datasheet, PDF (38/45 Pages) Holtek Semiconductor Inc – LCD Type 8-Bit MCU
SUB A,[m]
Description
Operation
Affected flag(s)
SUBM A,[m]
Description
Operation
Affected flag(s)
SUB A,x
Description
Operation
Affected flag(s)
SWAP [m]
Description
Operation
Affected flag(s)
SWAPA [m]
Description
Operation
Affected flag(s)
HT49R50A-1/HT49C50-1/HT49C50L
Subtract data memory from the accumulator
The specified data memory is subtracted from the contents of the accumulator, leaving the
result in the accumulator.
ACC ¬ ACC+[m]+1
TO
PDF
OV
Z
AC
C
¾
¾
Ö
Ö
Ö
Ö
Subtract data memory from the accumulator
The specified data memory is subtracted from the contents of the accumulator, leaving the
result in the data memory.
[m] ¬ ACC+[m]+1
TO
PDF
OV
Z
AC
C
¾
¾
Ö
Ö
Ö
Ö
Subtract immediate data from the accumulator
The immediate data specified by the code is subtracted from the contents of the accumula-
tor, leaving the result in the accumulator.
ACC ¬ ACC+x+1
TO
PDF
OV
Z
AC
C
¾
¾
Ö
Ö
Ö
Ö
Swap nibbles within the data memory
The low-order and high-order nibbles of the specified data memory (1 of the data memo-
ries) are interchanged.
[m].3~[m].0 « [m].7~[m].4
TO
PDF
OV
Z
AC
C
¾
¾
¾
¾
¾
¾
Swap data memory and place result in the accumulator
The low-order and high-order nibbles of the specified data memory are interchanged, writ-
ing the result to the accumulator. The contents of the data memory remain unchanged.
ACC.3~ACC.0 ¬ [m].7~[m].4
ACC.7~ACC.4 ¬ [m].3~[m].0
TO
PDF
OV
Z
AC
C
¾
¾
¾
¾
¾
¾
Rev. 2.00
38
November 29, 2005