Download M32R Family SOFTWARE MANUAL
Transcript
INSTRUCTIONS 3.2 Instruction description branch instruction BRA BRA Branch [Mnemonic] ➀ ➁ BRA BRA pcdisp8 pcdisp24 [Function] Branch ➀ ➁ PC = ( PC & 0xfffffffc ) + ( ( ( signed char ) pcdisp8 ) << 2 ); PC = ( PC & 0xfffffffc ) + ( sign_extend ( pcdisp24 ) << 2 ); where #define sign_extend(x) ( ( ( signed ) ( (x)<< 8 ) ) >>8 ) [Description] BRA causes an unconditional branch to the address specified by the label. There are two instruction formats; this allows software, such as an assembler, to decide on the better format. The condition bit (C) is unchanged. [EIT occurrence] None [Encoding] 0111 1111 1111 1111 pcdisp8 BRA pcdisp8 pcdisp24 M32R family Software Manual BRA pcdisp24 3-25