ARM R4F, r1p3 manual Instruction set states, ARM state, Thumb state, Switching state

Models: R4F r1p3 R4

1 456
Download 456 pages 40.06 Kb
Page 49
Image 49

Programmer’s Model

2.2Instruction set states

The processor has two instruction set states:

ARM state

The processor executes 32-bit, word-aligned ARM instructions in this

 

state.

Thumb state

The processor executes 32-bit and 16-bit halfword-aligned Thumb

 

instructions in this state.

Note

Transition between ARM state and Thumb state does not affect the processor mode or the register contents.

2.2.1Switching state

The instruction set state of the processor can be switched between ARM state and Thumb state:

Using the BX and BLX instructions, by a load to the PC, or with a data-processing instruction that does not set flags, with the PC as the destination register. Switching state is described in the ARM Architecture Reference Manual.

Note

When the BXJ instruction is used the processor invokes the BX instruction.

Automatically on an exception. You can write an exception handler routine in ARM or Thumb code. For more information, see Exceptions on page 2-16.

2.2.2Interworking ARM and Thumb state

The processor enables you to mix ARM and Thumb code. For more information about interworking ARM and Thumb, see the RealView Compilation Tools Developer Guide.

ARM DDI 0363E

Copyright © 2009 ARM Limited. All rights reserved.

2-3

ID013010

Non-Confidential, Unrestricted Access

 

Page 49
Image 49
ARM R4F, r1p3 manual Instruction set states, ARM state, Switching state, Interworking ARM and Thumb state