Chapter 12 List of Machine Language Instructions

12.3.2 Arithmetic Instructions

ADD

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.

 

 

 

ADD with CARRY

Mnemonic

Description of operation

 

 

ADDC Dm, Dn

Add the contents of Dm and the carry flag to Dn and store the result in Dn.

 

 

SUBTRACT

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.

 

 

SUBTRACT with BORROW

Mnemonic

Description of operation

 

 

SUBC Dm, Dn

Subtract the contents of Dm and the carry flag from Dn and store the result in

Dn.

 

 

 

List of Machine Language Instructions 237

Page 249
Image 249
Panasonic MN1030 user manual Arithmetic Instructions, ADD with Carry, Subtract with Borrow