Extends the sign of the low-order byte.
Note: The extsb instruction is supported only in the PowerPC architecture.
The extsb instruction places bits 24-31 of general-purpose register (GPR) RS into bits 24-31 of GPR RA and copies bit 24 of register RS in bits 0-23 of register RA.
The extsb instruction has two syntax forms. Each syntax form has a different effect on Condition Register Field 0 and the Fixed-Point Exception Register.
If the syntax form sets the Record (Rc) bit to 1, the instruction affects the Less Than (LT) zero, Greater Than (GT) zero, Equal To (EQ) zero, and Summary Overflow (SO) bits in Condition Register Field 0.
|RA||Specifies target general-purpose register where result of operation is stored.|
|RS||Specifies source general-purpose register of containing the byte to be extended.|
# Assume GPR 6 holds 0x5A5A 5A5A. extsb 4,6 # GPR 6 now holds 0x0000 005A.
# Assume GPR 4 holds 0xA5A5 A5A5. extsb. 4,4 # GPR 4 now holds 0xFFFF FFA5.
Fixed-Point Logical Instructions.