32-Bit Instruction Set

RESTORE

Restore Caller’s Register Window

Operation:

 

 

 

 

CWP CWP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

if (old-CWP = = HI_LIMIT)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

then TRAP #2

 

 

 

 

 

 

 

 

 

 

 

 

Assembler Syntax:

 

 

RESTORE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example:

 

 

 

 

RESTORE ; bump up the register window

 

 

 

 

Description:

 

 

 

 

Moves CWP up by one position in the register file. If CWP is equal to HI_LIMIT

 

 

 

 

 

 

(from the WVALID register) before the RESTORE instruction, then a window-

 

 

 

 

 

 

overflow trap (TRAP #2) is generated.

 

 

 

 

 

 

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Format:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

w

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

 

12

11

 

 

10

 

9

8

 

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

 

1

1

 

 

1

 

0

 

1

 

1

0

1

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

78

Altera Corporation

Page 90
Image 90
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Restore Caller’s Register Window