sext16
Sign Extend Halfword
rD, rA
sext16
1 0 0 1 0 0
0
6
Description
This instruction sign-extends a halfword (16 bits) into a word (32 bits). Bit 16 in rA will be copied into
bits 0-15 of rD. Bits 16-31 in rA will be copied into bits 16-31 of rD.
Pseudocode
←
(rD)[0:15]
(rD)[16:31]
Registers Altered
•
rD
Latency
•
1 cycle
MicroBlaze Processor Reference Guide
UG984 (v2018.2) June 21, 2018
rD
rA
11
(rA)[16]
←
(rA)[16: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 1
16
31
283
Send Feedback
Need help?
Do you have a question about the MicroBlaze and is the answer not in the manual?
Questions and answers