
SUB A,[m]
Subtract data memory from the accumulator
Description
The specified data memory is subtracted from the contents of the accumulator, leaving the
result in the accumulator.
Operation
ACC
ACC+[m]+1
Affected flag(s)
TO
PDF
OV
Z
AC
C
SUBM A,[m]
Subtract data memory from the accumulator
Description
The specified data memory is subtracted from the contents of the accumulator, leaving the
result in the data memory.
Operation
[m]
ACC+[m]+1
Affected flag(s)
TO
PDF
OV
Z
AC
C
SUB A,x
Subtract immediate data from the accumulator
Description
The immediate data specified by the code is subtracted from the contents of the accumula-
tor, leaving the result in the accumulator.
Operation
ACC
ACC+x+1
Affected flag(s)
TO
PDF
OV
Z
AC
C
SWAP [m]
Swap nibbles within the data memory
Description
The low-order and high-order nibbles of the specified data memory (1 of the data memo-
ries) are interchanged.
Operation
[m].3~[m].0
[m].7~[m].4
Affected flag(s)
TO
PDF
OV
Z
AC
C
SWAPA [m]
Swap data memory and place result in the accumulator
Description
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.
Operation
ACC.3~ACC.0
[m].7~[m].4
ACC.7~ACC.4
[m].3~[m].0
Affected flag(s)
TO
PDF
OV
Z
AC
C
HT83R074
Rev. 1.00
32
May 17, 2007