Excalibur electronic A-MNL-NIOSPROG-01.1 manual Half-Word Extract Dynamic, EXT16d %rA,%rB

Models: A-MNL-NIOSPROG-01.1

1 122
Download 122 pages 44.67 Kb
Page 59
Image 59

 

32-Bit Instruction Set

 

 

 

EXT16d

 

Half-Word Extract (Dynamic)

Operation:

RA (0x00.00 : hnRA) where n = RB[1]

Assembler Syntax:

EXT16d %rA,%rB

Example:

LD %i3,[%i4] ; get 32 bits from [%i4 & 0xFF.FF.FF.FC]

 

EXT16d %i3,%i4 ; extract short int at %i4

Description:

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

 

by bit 1 of RB. The selected half-word is written into bits 15..0 of RA, and the

 

more-significant bits 31..16 are set to zero.

2

32-Bit Instruction Set

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

 

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Format:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

A = Register index of operand RA

 

 

 

 

 

 

 

 

 

 

 

 

 

B = Register index of operand RB

 

 

 

 

 

 

 

15

14

13

 

12

11

10

 

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

 

0

1

0

 

 

 

 

 

B

 

 

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Altera Corporation

47

Page 59
Image 59
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Half-Word Extract Dynamic, EXT16d %rA,%rB