Altera Nios II User Manual page 255

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

Chapter 8: Instruction Set Reference
Instruction Set Reference
nextpc
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Exceptions:
Instruction Type:
Instruction Fields:
31
30
29
28
27
26
25
0
February 2014 Altera Corporation
rC ← PC + 4
nextpc rC
nextpc r6
Stores the address of the next instruction to register rC.
A relocatable code fragment can use nextpc to calculate the address of its data segment.
nextpc is the only way to access the PC directly.
None
R
C = Register index of operand rC
24
23
22
21
20
19
18
17
0
C
get address of following instruction
16
15
14
13
12
11
10
9
0x1c
8
7
6
5
4
3
2
1
0
0x3a
Nios II Processor Reference Handbook
8–75
0

Advertisement

Table of Contents
loading

Table of Contents