Architecture

BLEZ

Branch On Less Than Or Equal To Zero

BLEZ

 

31

26 25

21 20

16 15

0

 

 

BLEZ

 

rs

 

 

0

 

offset

 

 

 

 

 

 

 

 

 

 

000110

 

 

 

 

00000

 

 

 

 

6

5

 

 

5

 

16

 

Format :

BLEZ rs, offset

Description :

Generates a branch target address by adding the address of the instruction in the delay slot to the 16- bit offset (that has been left-shifted two bits and sign-extended to 32 bits). If the the value in general-purpose register rs is negative or 0 (i.e., the sign bit of rs is 1 or the rs value is 0), the program branches to the target address after a one-cycle delay.

Operation :

T:

target (offset )14

offset 02

 

15

 

 

condition (GPR[rs]31 = 1) or (GPR[rs] = 032)

T + 1:

if condition then

 

 

PC PC + target

 

 

endif

 

 

 

 

Exceptions :

None

124

Page 135
Image 135
Toshiba TX39 user manual Blez