beautypg.com

Renesas M32R-FPU User Manual

Page 52

background image

3

3-14

M32R-FPU Software Manual (Rev.1.01)

BC

BC

[Mnemonic]

(1)

BC pcdisp8

(2)

BC pcdisp24

[Function]

Branch

(1) if ( C==1 ) PC = ( PC & 0xfffffffc ) + ( ( ( signed char ) pcdisp8 ) << 2 );

(2) if ( C==1 ) PC = ( PC & 0xfffffffc ) + ( sign_extend ( pcdisp24 ) << 2 );

where

#define sign_extend(x) ( ( ( signed ) ( (x)<< 8 ) ) >>8 )

[Description]

BC causes a branch to the specified label when the condition bit (C) is 1.

There are two instruction formats; which allows software, such as an assembler, to decide on

the better format.

The condition bit (C) is unchanged.

[EIT occurrence]

None

[Encoding]

1100

1111

1100

0111

BC pcdisp24

BC pcdisp8

pcdisp8

pcdisp24

INSTRUCTIONS

3.2 Instruction description

branch instruction

Bit clear

M32R-FPU Extended Instruction