Excalibur electronic A-MNL-NIOSPROG-01.1 用户手册

下载
页码 122
78
Altera Corporation
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
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
N
V
Z
C