Specifications
Table Of Contents
- Nios II Processor Reference Handbook
- Contents
- Chapter Revision Dates
- About This Handbook
- Section I. Nios II Processor
- 1. Introduction
- 2. Processor Architecture
- 3. Programming Model
- Introduction
- General- Purpose Registers
- Control Registers
- Operating Modes
- Exception Processing
- Memory and Peripheral Access
- Instruction Set Categories
- Referenced Documents
- Document Revision History
- 4. Instantiating the Nios II Processor in SOPC Builder
- Section II. Appendices
- 5. Nios II Core Implementation Details
- Introduction
- Device Family Support
- Nios II/f Core
- Nios II/s Core
- Nios II/e Core
- Referenced Documents
- Document Revision History
- 6. Nios II Processor Revision History
- 7. Application Binary Interface
- 8. Instruction Set Reference
- Introduction
- Word Formats
- Instruction Opcodes
- Assembler Pseudo- instructions
- Assembler Macros
- Instruction Set Reference
- add
- addi
- and
- andhi
- andi
- beq
- bge
- bgeu
- bgt
- bgtu
- ble
- bleu
- blt
- bltu
- bne
- br
- break
- bret
- call
- callr
- cmpeq
- cmpeqi
- cmpge
- cmpgei
- cmpgeu
- cmpgeui
- cmpgt
- cmpgti
- cmpgtu
- cmpgtui
- cmple
- cmplei
- cmpleu
- cmpleui
- cmplt
- cmplti
- cmpltu
- cmpltui
- cmpne
- cmpnei
- custom
- div
- divu
- eret
- flushd
- flushda
- flushi
- flushp
- initd
- initi
- jmp
- jmpi
- ldb / ldbio
- ldbu / ldbuio
- ldh / ldhio
- ldhu / ldhuio
- ldw / ldwio
- mov
- movhi
- movi
- movia
- movui
- mul
- muli
- mulxss
- mulxsu
- mulxuu
- nextpc
- nop
- nor
- or
- orhi
- ori
- rdctl
- ret
- rol
- roli
- ror
- sll
- slli
- sra
- srai
- srl
- srli
- stb / stbio
- sth / sthio
- stw / stwio
- sub
- subi
- sync
- trap
- wrctl
- xor
- xorhi
- xori
- Referenced Documents
- Document Revision History

Altera Corporation 8–5
October 2007 Nios II Processor Reference Handbook
Instruction Set Reference
Table 8–2. OPX Encodings for R-Type Instructions
OPX Instruction OPX Instruction OPX Instruction OPX Instruction
0x00 0x10 cmplt 0x20 cmpeq 0x30 cmpltu
0x01 eret 0x11 0x21 0x31 add
0x02 roli 0x12 slli 0x22 0x32
0x03 rol 0x13 sll 0x23 0x33
0x04 flushp 0x14 0x24 divu 0x34 break
0x05 ret 0x15 0x25 div 0x35
0x06 nor 0x16 or 0x26 rdctl 0x36 sync
0x07 mulxuu 0x17 mulxsu 0x27 mul 0x37
0x08 cmpge 0x18 cmpne 0x28 cmpgeu 0x38
0x09 bret 0x19 0x29 initi 0x39 sub
0x0A 0x1A srli 0x2A 0x3A srai
0x0B ror 0x1B srl 0x2B 0x3B sra
0x0C flushi 0x1C nextpc 0x2C 0x3C
0x0D jmp 0x1D callr 0x2D trap 0x3D
0x0E and 0x1E xor 0x2E wrctl 0x3E
0x0F 0x1F mulxss 0x2F 0x3F