Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Atmel ARM7TDMI datasheet.1999.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
1.45 Mб
Скачать

Instruction Set

Opcode Summary

The following table summarizes the THUMB instruction set. For further information about a particular instruction please refer to the sections listed in the right-most column.

Table 11. THUMB Instruction Set Opcodes

 

 

Lo register

Hi register

Condition

 

Mnemonic

Instruction

operand

operand

codes set

See Page:

 

 

 

 

 

 

ADC

Add with Carry

 

 

 

84

ADD

Add

 

 

(1)

81, 83, 86, 100, 101

AND

AND

 

 

 

84

ASR

Arithmetic Shift Right

 

 

 

80, 84

B

Unconditional branch

 

 

 

108

Bxx

Conditional branch

 

 

 

105

BIC

Bit Clear

 

 

 

84

BL

Branch and Link

 

 

 

109

BX

Branch and Exchange

 

 

 

86

CMN

Compare Negative

 

 

 

84

CMP

Compare

 

 

 

83, 84, 86

EOR

EOR

 

 

 

84

LDMIA

Load multiple

 

 

 

104

LDR

Load word

 

 

 

89, 90, 94, 98

LDRB

Load byte

 

 

 

90, 94

LDRH

Load halfword

 

 

 

92, 96

LSL

Logical Shift Left

 

 

 

80, 84

LDSB

Load sign-extended byte

 

 

 

92

LDSH

Load sign-extended half-

 

 

 

92

 

word

 

 

 

 

LSR

Logical Shift Right

 

 

 

80, 84

MOV

Move register

 

 

(2)

83, 86

MUL

Multiply

 

 

 

84

MVN

Move Negative register

 

 

 

84

NEG

Negate

 

 

 

84

ORR

OR

 

 

 

84

POP

Pop registers

 

 

 

102

PUSH

Push registers

 

 

 

102

ROR

Rotate Right

 

 

 

84

SBC

Subtract with Carry

 

 

 

84

STMIA

Store Multiple

 

 

 

104

STR

Store word

 

 

 

90, 94, 98

STRB

Store byte

 

 

 

90

STRH

Store halfword

 

 

 

92, 96

SWI

Software Interrupt

 

 

 

107

SUB

Subtract

 

 

 

81, 83

TST

Test bits

 

 

 

84

Notes: 1. The condition codes are unaffected by the format 5, 12 and 13 versions of this instruction.

2.The condition codes are unaffected by the format 5 version of this instruction.

79

Соседние файлы в предмете Электротехника