sext8
Sign Extend Byte
rD, rA
sext8
1 0 0 1 0 0
0
6
Description
This instruction sign-extends a byte (8 bits) into a word (32 bits). Bit 24 in rA will be copied into bits
0-23 of rD. Bits 24-31 in rA will be copied into bits 24-31 of rD.
Pseudocode
←
(rD)[0:23]
(rD)[24:31]
Registers Altered
•
rD
Latency
•
1 cycle
MicroBlaze Processor Reference Guide
UG984 (v2018.2) June 21, 2018
rD
rA
11
(rA)[24]
←
(rA)[24:31]
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
16
31
284
Send Feedback
Need help?
Do you have a question about the MicroBlaze and is the answer not in the manual?
Questions and answers