You copied the Doc URL to your clipboard.

BXJ

Branch and change to Jazelle state.

Syntax

BXJ{cond} Rm

where:

cond

is an optional condition code. cond is not available on all forms of this instruction.

Rm

is a register containing an address to branch to.

Operation

The BXJ instruction causes a branch to the address contained in Rm and changes the instruction set state to Jazelle.

Instruction availability and branch ranges

Table 12 shows the BXJ instructions that are available in ARM and Thumb state. Instructions that are not shown in this table are not available. Notes in brackets show the first architecture version where the instruction is available.

Table 12. Branch instruction availability and range
InstructionARM Thumb, 16-bit encodingThumb, 32-bit encoding
BXJ RmAvailable(5J, 6)- Available(All T2 except ARMv7-M)
BXJ{cond} RmAvailable(5J, 6)- --

BXJ in ThumbEE

You can use this instruction as a branch in ThumbEE code, but you cannot use it to change state. Bit[0] of Rm must be 1, and execution continues at the target address in ThumbEE state.

Note

BXJ behaves like BX in ThumbEE.

Register restrictions

You can use SP for Rm in the BXJ ARM instruction but this is deprecated in ARMv6T2 and above.

You cannot use SP in the BXJ Thumb instruction.

Condition flags

The BXJ instruction does not change the flags.

Architectures

See Table 12 for details of availability of the BXJ instruction in each architecture.

See also