Toshiba TX39 user manual Slti

Models: TX39

1 246
Download 246 pages 24.89 Kb
Page 189
Image 189

Architecture

SLTI

Set On Less Than Immediate

SLTI

 

31

26 25

21 20

16 15

0

 

 

 

SLTI

 

rs

 

rt

 

immediate

 

 

 

 

 

 

 

 

 

 

001010

 

 

 

 

 

 

 

 

 

6

 

5

 

5

 

16

 

Format :

SLTI rt, rs, immediate

Description :

Sign-extends the 16-bit immediate value and compares the result with the contents of general- purpose register rs, treating both values as 32-bit signed integers. A 1, if rs is less than the sigh- extended immediate value, or a 0, otherwise, is placed in general-purpose register rt as the result of the comparison.

No overflow exception is raised. The comparison is valid even if the subtraction used in making the comparison overflows.

Operation :

T:if GPR[rs]< (immediate15)16 immediate15..0 then GPR[rd] 031 1

else

GPR[rd] 032

endif

Exceptions :

None

178

Page 189
Image 189
Toshiba TX39 user manual Slti