32-Bit Instruction Set

LRET

Equivalent to JMP %o7

Operation:

 

 

 

 

PC (%o7 << 1)

 

 

 

 

 

 

 

 

 

Assembler Syntax:

 

 

LRET

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example:

 

 

 

 

LRET ; return

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NOP ; (delay slot)

 

 

 

 

 

 

 

 

 

Description:

 

 

 

 

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

 

 

 

 

 

 

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

 

 

 

 

 

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Delay Slot Behavior:

 

 

The instruction immediately following LRET (LRET’s delay slot) is executed after

 

 

 

 

 

 

LRET, 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)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Format:

 

 

Rw

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

None (always uses %o7)

 

 

 

 

 

 

 

 

 

15

14

13

 

12

11

 

 

10

 

9

8

 

7

6

5

4

3

2

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

 

1

1

 

 

1

 

1

 

1

 

1

1

0

0

1

1

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

62

Altera Corporation

Page 74
Image 74
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Equivalent to JMP %o7, Lret return