Table of Contents

Advertisement

8. Instruction Set Reference
NII-PRG | 2018.04.18

8.5.52. jmp

Instruction
Operation
Assembler Syntax
Example
Description
Usage
Exceptions
Instruction Type
Instruction Fields
31
30
29
A
15
14
13
0x0d

8.5.53. jmpi

Instruction
Operation
Assembler Syntax
Example
Description
Usage
Exceptions
Instruction Type
Instruction Fields
31
30
29
15
14
13
28
27
26
25
12
11
10
9
28
27
26
25
12
11
10
9
IMM26
computed jump
PC
rA
jmp rA
jmp r12
Transfers execution to the address contained in register rA.
It is illegal to jump to the address contained in register r31.
To return from subroutines called by
instead of
.
ret
jmp
Misaligned destination address
R
= Register index of operand rA
A
Bit Fields
24
23
22
21
0
8
7
6
5
0
jump immediate
PC
(PC
: IMM26 x 4)
31..28
jmpi label
jmpi write_char
Transfers execution to the instruction at address (PC
IMM26 x 4).
is a low-overhead local jump.
jmpi
execution anywhere within the 256-MB range determined by
PC
. The Nios II GNU linker does not automatically
31..28
handle cases in which the address is out of this range.
None
J
= 26-bit unsigned immediate value
IMM26
Bit Fields
24
23
22
21
IMM26
8
7
6
5
or
, use
call
callr
20
19
18
17
0
4
3
2
1
0x3a
31..28
can transfer
jmpi
20
19
18
17
4
3
2
1
0x01
Nios II Processor Reference Guide
16
0x0d
0
:
16
0
205

Advertisement

Table of Contents
loading

Table of Contents