32-Bit Instruction Set

EXT16s

Half-Word Extract (Static)

Operation:

RA (0x00.00 : hnRA) where n = IMM1

Assembler Syntax:

EXT16s %rA,IMM1

Example:

EXT16s %L3,1 ; %L3 gets upper short int of itself

Description:

Extracts one of the two half-words in RA. The half-word to-be-extracted is chosen

 

by the one-bit immediate value IMM1. The selected half-word is written into bits

 

15..0 of RA, and the more significant bits 31..16 are set to zero.

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Format:

 

 

Ri1u

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

A = Register index of operand RA

 

 

 

 

 

 

 

 

 

 

 

 

IMM1 = 1-bit immediate value

 

 

 

 

 

 

 

15

14

13

 

12

11

 

 

10

 

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

 

1

0

 

 

1

 

0

 

0

1

IMM1

0

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

48

Altera Corporation

Page 60
Image 60
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Half-Word Extract Static, EXT16s %rA,IMM1