136 www.xilinx.com MicroBlaze Processor Reference Guide
1-800-255-7778 UG081 (v6.0) June 1, 2006
Chapter 4: MicroBlaze Instruction Set Architecture
R
sext8
Sign Extend Byte
Description
Thisinstruction sign-extends abyte (8bits)into aword(32 bits). Bit24in rA will becopied
into bits 0-23 of rD. Bits 24-31 in rA will be copied into bits 24-31 of rD.
Pseudocode
(rD)[0:23] (rA)[24]
(rD)[24:31]
(rA)[24:31]
Registers Altered
rD
Latency
1 cycle
sext8 rD, rA
1 0 0 1 0 0 rD rA 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
0 6 11 16 31