7. Assembly Language Comparison
The following pages list all Nios® II processor instruction mnemonics, along with the Nios® V processor counterparts. To achieve similar functionality to a Nios® II processor instruction, you can use either a supported Nios® V processor instruction or a combination of instructions.
| Notation | Meaning |
|---|---|
| X ← Y | X is written with Y |
| PC ← X | The program counter (PC) is written with address X; the instruction at X is the next instruction to execute |
| PC | The address of the assembly instruction in question |
| rA, rB, rC | One of the 32-bit general-purpose registers in Nios® II processor |
| xA, xB, xC | One of the 32-bit general-purpose registers in Nios® V processor |
| prs.rA | General-purpose register rA in the previous register set |
| IMMn | An n-bit immediate value, embedded in the instruction word |
| IMMED | An immediate value |
| Xn | The nth bit of X, where n = 0 is the LSB |
| Xn..m | Consecutive bits n through m of X |
| 0xNNMM | Hexadecimal notation |
| X : Y | Bitwise concatenation For example, (0x12 : 0x34) = 0x1234 |
| σ(X) | The value of X after being sign-extended to a full register-sized signed integer |
| X >> n | The value X after being right-shifted n bit positions |
| X << n | The value X after being left-shifted n bit positions |
| X & Y | Bitwise logical AND |
| X | Y | Bitwise logical OR |
| X ^ Y | Bitwise logical XOR |
| ~X | Bitwise logical NOT (one’s complement) |
| Mem8[X] | The byte located in data memory at byte address X |
| Mem16[X] | The halfword located in data memory at byte address X |
| Mem32[X] | The word located in data memory at byte address X |
| label | An address label specified in the assembly file |
| (signed) rX | The value of rX treated as a signed number |
| (unsigned) rX | The value of rX treated as an unsigned number |
Section Content
Arithmetic and Logic Operations
Data Handling and Memory Operations
Control Flow Operations
Miscellaneous Operations
Related Information