Table of Contents

Advertisement

31
30
29
0
15
14
13
0x34

8.5.18. bret

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

8.5.19. call

Instruction
Operation
Assembler Syntax
Example
Description
Usage
Nios II Processor Reference Guide
184
28
27
26
25
12
11
10
9
28
27
26
25
12
11
10
9
Bit Fields
24
23
22
21
0
8
7
6
5
IMM5
breakpoint return
status
bstatus
PC
ba
bret
bret
Copies the value of
bstatus
transfers execution to the address in
is used by debuggers exclusively and should not
bret
appear in user programs, operating systems, or exception
handlers.
Misaligned destination address
Supervisor-only instruction
R
None
Bit Fields
24
23
22
21
0
8
7
6
5
0
call subroutine
PC + 4
ra
PC
(PC
: IMM26 x 4)
31..28
call label
call write_char
Saves the address of the next instruction in register
transfers execution to the instruction at address (PC
IMM26 x 4).
can transfer execution anywhere within the 256-MB
call
range determined by PC
not automatically handle cases in which the address is out
of this range.
8. Instruction Set Reference
NII-PRG | 2018.04.18
20
19
18
17
0x1e
4
3
2
1
0x3a
to the
register, then
status
.
ba
20
19
18
17
0x1e
4
3
2
1
0x3a
ra
31..28
. The Nios II GNU linker does
31..28
continued...
16
0x34
0
16
0x09
0
, and
:

Advertisement

Table of Contents
loading

Table of Contents