Chapter 12 List of Machine Language Instructions
List of Machine Language Instructions 237
12.3.2 Arithmetic Instructions

ADD

ADD with CARRY

SUBTRACT

SUBTRACT with BORROW

Mnemonic Description of operation
ADD Dm, Dn Add the contents of Dm and Dn and store the result in Dn.
ADD Dm, An Add the contents of Dm and An and store the result in An.
ADD Am, Dn Add the contents of Am and Dn and store the result in Dn.
ADD Am, An Add the contents of Am and An and store the result in An.
ADD imm, Dn Add the sign-extended imm8, sign-extended imm16, or imm32 to the
contents of Dn and store the result in Dn.
ADD imm, An Add the sign-extended imm8, sign-extended imm16, or imm32 to the
contents of An and store the result in An.
ADD imm, SP Add the sign-extended imm8, sign-extended imm16, or imm32 to the
contents of SP and store the result in SP.
Mnemonic Description of operation
ADDC Dm, Dn Add the contents of Dm and the carry flag to Dn and store the result in Dn.
Mnemonic Description of operation
SUB Dm, Dn Subtract the contents of Dm from Dn and store the result in Dn.
SUB Dm, An Subtract the contents of Dm from An and store the result in An.
SUB Am, Dn Subtract the contents of Am from Dn and store the result in Dn.
SUB Am, An Subtract the contents of Am from An and store the result in An.
SUB imm32, Dn Subtract imm32 from Dn and store the result in Dn.
Mnemonic Description of operation
SUBC Dm, Dn Subtract the contents of Dm and the carry flag from Dn and store the result in
Dn.