Instructions

sext16

Sign Extend Halfword

 

sext16

rD, rA

R

1 0 0 1 0 0

rD

rA

0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1

0

6

11

16

31

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] (rA)[16] (rD)[16:31] (rA)[16:31]

Registers Altered

rD

Latency

1 cycle

MicroBlaze Processor Reference Guide

www.xilinx.com

135

UG081 (v6.0) June 1, 2006

1-800-255-7778

 

Page 135
Image 135
Xilinx EDK 8.2i manual Sext16 RD, rA