Chapter 12 List of Machine Language Instructions

ARITHMETIC SHIFT RIGHT

Mnemonic

Description of operation

 

 

ASR Dm, Dn

Arithmetically shift the contents of Dn right the number of bits specified in

Dm and store the result in Dn.

 

 

 

ASR imm8, Dn

Arithmetically shift the contents of Dn right the number of bits specified by

imm8 and store the result in Dn.

 

 

 

ASR Dn

Arithmetically shift the contents of Dn right one bit and store the result in Dn.

 

 

LOGICAL SHIFT RIGHT

Mnemonic

Description of operation

 

 

LSR Dm, Dn

Logically shift the contents of Dn right the number of bits specified in Dm and

store the result in Dn.

 

 

 

LSR imm8, Dn

Logically shift the contents of Dn right the number of bits specified by imm8

and store the result in Dn.

 

 

 

LSR Dn

Logically shift the contents of Dn right one bit and store the result in Dn.

 

 

ARITHMETIC SHIFT LEFT

Mnemonic

Description of operation

 

 

ASL Dm, Dn

Arithmetically shift the contents of Dn left the number of bits specified in Dm

and store the result in Dn.

 

Zeros enter from the least significant bit.

 

 

ASL imm8, Dn

Arithmetically shift the contents of Dn left the number of bits specified by

imm8 and store the result in Dn.

 

Zeros enter from the least significant bit.

 

 

ASL2 Dn

Arithmetically shift the contents of Dn left two bits and store the result in Dn.

Zeros enter from the least significant bit..

 

 

 

ROTATE RIGHT

Mnemonic

Description of operation

 

 

ROR Dn

Rotate the contents of Dn plus the C flag right one bit and store the result in Dn.

 

 

ROTATE LEFT

Mnemonic

Description of operation

 

 

ROL Dn

Rotate the contents of Dn plus the C flag left one bit and store the result in Dn.

 

 

240 List of Machine Language Instructions

Page 252
Image 252
Panasonic MN1030 Mnemonic Description of operation ASR Dm, Dn, ASR imm8, Dn, ASR Dn, LSR imm8, Dn, LSR Dn, ASL imm8, Dn