32-Bit Instruction Set

 

 

 

 

 

 

RET

 

 

 

 

 

 

Equivalent to JMP %i7

Operation:

PC (%i7 << 1)

 

 

Assembler Syntax:

RET

 

 

 

 

 

Example:

RET ; return

 

 

 

RESTORE ; (restores caller’s register window)

Description:

Jump to the target-address given by (%i7 << 1). Note that the target address will

 

always be half-word aligned for any value of %i7.

Condition Codes:

Flags: Unaffected

 

N

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

32-Bit Set

Delay Slot Behavior:

Instruction Format:

Instruction Fields:

15 14 13 12

0

1

1

1

 

 

 

 

The instruction immediately following RET (RET’s delay slot) is executed after RET, but before the destination instruction. There are restrictions on which instructions may be used as a delay slot (Refer to “Branch Delay Slots” on page 23).

Rw

None (always uses %i7)

11

10

9

8

7

6

5

4

3

2

1

0

1

1

1

1

1

1

0

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

Instruction

Altera Corporation

79

Page 91
Image 91
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Ret, Equivalent to JMP %i7, Restore restores caller’s register window