This guide describes the Altera Nios II processor custom instructions, including instruction formats, instruction encoding, data types, operands, registers and memory accesses, and the use and writing of custom instructions. The guide also discusses optimization of custom instructions and the limitations imposed by memory management and instruction scheduling.