The MIPS32® Instruction Set Manual, Revision 6.06 32 ADD Add Word
Total Page:16
File Type:pdf, Size:1020Kb
MIPS® Architecture for Programmers Volume II-A: The MIPS32® Instruction Set Manual Document Number: MD00086 Revision 6.06 December 15, 2016 Public. This publication contains proprietary information which is subject to change without notice and is supplied ‘as is’, without any warranty of any kind. The MIPS32® Instruction Set Manual, Revision 6.06 Table of Contents Chapter 1: About This Book .................................................................................................................. 2 1.1: Typographical Conventions ......................................................................................................................... 3 1.1.1: Italic Text............................................................................................................................................ 3 1.1.2: Bold Text............................................................................................................................................ 3 1.1.3: Courier Text ....................................................................................................................................... 3 1.2: UNPREDICTABLE and UNDEFINED ......................................................................................................... 3 1.2.1: UNPREDICTABLE............................................................................................................................. 3 1.2.2: UNDEFINED ...................................................................................................................................... 4 1.2.3: UNSTABLE ........................................................................................................................................ 4 1.3: Special Symbols in Pseudocode Notation................................................................................................... 4 1.4: Notation for Register Field Accessibility ...................................................................................................... 7 1.5: For More Information ................................................................................................................................... 9 Chapter 2: Guide to the Instruction Set.............................................................................................. 10 2.1: Understanding the Instruction Fields ......................................................................................................... 10 2.1.1: Instruction Fields.............................................................................................................................. 12 2.1.2: Instruction Descriptive Name and Mnemonic................................................................................... 12 2.1.3: Format Field..................................................................................................................................... 12 2.1.4: Purpose Field................................................................................................................................... 13 2.1.5: Description Field .............................................................................................................................. 13 2.1.6: Restrictions Field.............................................................................................................................. 13 2.1.7: Availability and Compatibility Fields................................................................................................. 14 2.1.8: Operation Field................................................................................................................................. 15 2.1.9: Exceptions Field............................................................................................................................... 15 2.1.10: Programming Notes and Implementation Notes Fields.................................................................. 15 2.2: Operation Section Notation and Functions................................................................................................ 16 2.2.1: Instruction Execution Ordering......................................................................................................... 16 2.2.2: Pseudocode Functions..................................................................................................................... 16 2.3: Op and Function Subfield Notation............................................................................................................ 27 2.4: FPU Instructions ........................................................................................................................................ 27 Chapter 3: The MIPS32® Instruction Set ............................................................................................ 29 3.1: Compliance and Subsetting....................................................................................................................... 29 3.1.1: Subsetting of Non-Privileged Architecture ....................................................................................... 29 3.2: Alphabetical List of Instructions ................................................................................................................. 31 ABS.fmt ......................................................................................................................................................... 32 ADD............................................................................................................................................................... 33 ADD.fmt......................................................................................................................................................... 34 ADDI.............................................................................................................................................................. 35 ADDIU ........................................................................................................................................................... 36 ADDIUPC ...................................................................................................................................................... 37 ADDU ............................................................................................................................................................ 38 ALIGN............................................................................................................................................................ 39 ALNV.PS ....................................................................................................................................................... 41 ALUIPC ......................................................................................................................................................... 43 AND............................................................................................................................................................... 44 ANDI.............................................................................................................................................................. 45 3 The MIPS32® Instruction Set Manual, Revision 6.06 AUI ................................................................................................................................................................ 47 AUIPC ........................................................................................................................................................... 48 B.................................................................................................................................................................... 49 BAL................................................................................................................................................................ 50 BALC............................................................................................................................................................. 52 BC ................................................................................................................................................................. 53 BC1EQZ BC1NEZ......................................................................................................................................... 54 BC1F ............................................................................................................................................................. 56 BC1FL ........................................................................................................................................................... 58 BC1T ............................................................................................................................................................. 60 BC1TL ........................................................................................................................................................... 62 BC2EQZ BC2NEZ......................................................................................................................................... 64 BC2F ............................................................................................................................................................. 66 BC2FL ..........................................................................................................................................................