When you create an instruction set, you’re bound by some constraints, such as the total number of instructions you can create. The MIPS creators realized that there isn’t a need for subi
(because you can add a negative number with addi
using 2’s complement), and they simply made the decision to forego making that instruction. It may have been to conserve the number of instructions, or just simply because it isn’t needed.
Related Posts:
- Understanding how `lw` and `sw` actually work in a MIPS program
- assembly “mov” instruction
- Why shift a bit using sll and such in MIPs Assembly?
- The difference between cmpl and cmp
- MIPS: lw (load word) instruction
- What’s the size of a QWORD on a 64-bit machine?
- MIPS assembly for a simple for loop
- mips .word function and differences between 2 codes
- What exactly does the lb instruction do?
- lc3 LDR instruction and the value stored
- What is the difference between la and li in opcodes in MIPS?
- what is the use of ori in this part of MIPS code?
- Storing a user’s input in MIPS
- Integer absolute value in MIPS?
- MIPS Assembly – lui $t0, 4097?
- Greater than, less than equal, greater than equal in MIPS
- MIPS program jr $ra instructions and stack handling
- Subtract two input numbers
- Assembly language (MIPS) difference betweent addi and add
- What is the difference between MOV and LEA?
- MIPS Address out of range (MARS)
- Difference between “addi” and “add” for pseudoinstruction “move” in MIPS?
- `testl` eax against eax?
- sorting array in mips (assembly)
- Multiplication by a power of 2 using Logical shifts in MIPS assembly
- MIPS instruction and machine code
- Convert from Java to MIPS
- Understanding Assembly MIPS .ALIGN and Memory Addressing
- What’s the difference between a word and byte?
- Difference between movq and movabsq in x86-64
- What’s the purpose of the LEA instruction?
- Understanding cmp instruction
- Assembly code vs Machine code vs Object code?
- What does the MOVZBL instruction do in IA-32 AT&T syntax?
- What’s the purpose of the LEA instruction?
- How to move ST(0) to EAX?
- The point of test %eax %eax
- Assembly: How does fld st(0) duplicates the top stack value in the following code?
- What does the MOVZBL instruction do in IA-32 AT&T syntax?
- What’s the purpose of the LEA instruction?
- x86 cmpl and jne
- What is the meaning of XOR in x86 assembly?
- What is the function of the push / pop instructions used on registers in x86 assembly?
- C to assembly – leaq instruction
- What is callq instruction?
- What does the BEQ instruction do exactly?
- what does .space do in mips?
- Purpose of ESI & EDI registers?
- What are the ESP and the EBP registers?
- IDIV operation in assembly (understanding)
- Convert C program into assembly code
- LC3 LEA instruction and the value stored
- What does movslq do?
- Assembly language je jump function
- Bubble sort algorithm in MIPS
- What are .S files?
- How do I correctly use the mod operator in MIPS?
- explanation about push ebp and pop ebp instruction in assembly
- Why are rbp and rsp called general purpose registers?
- x86 assembly: How does the ‘subl’ command work in AT&T syntax
- what does the cmpq instruction do?
- Purpose of ESI & EDI registers?
- xorl %eax – Instruction set architecture in IA-32
- Difference between “move” and “li” in MIPS assembly language
- Bubble sort on array on Assembly Language
- Nasm Error: invalid combination of opcode and operands
- When and why do we sign extend and use cdq with mul/div?
- Assembly addq clarification
- How do AX, AH, AL map onto EAX?
- writing functions in assembler
- pop or add esp, 4 ? What is the difference?
- Difference between JE/JNE and JZ/JNZ
- what is a file handle and where it is useful for a programmer?
- Printing out a number in assembly language?
- How does `Skipcond` work in the MARIE assembly language?
- What are callee and caller saved registers?
- What does `dword ptr` mean?
- Difference between JA and JG in assembly
- what does the the dword operand do in assembly
- MIPS to C Translation
- Dynamic vs Static instruction count
- What is the jmpq command doing in this example
- What does the LEAL assembly instruction do?
- Assembly – JZ instruction after CMP
- [Binary Bomb – Phase 4
- What does bx lr do in ARM assembly language?
- need help understanding the movzbl call in this function
- Write-back vs Write-Through caching?
- MIPS architecture syscall instruction
- Difference between word addressable and byte addressable
- error: “store address not aligned on word boundary”
- Which variable size to use (db, dw, dd) with x86 assembly?
- Assembly x86 – “leave” Instruction
- How do I compile the asm generated by GCC?
- Printing newline in MIPS
- Do all 64 bit intel architectures support SSSE3/SSE4.1/SSE4.2 instructions?
- How do you write code to do factorials in MIPS?
- MIPS Recursive Fibonacci Sequence
- error A2022: instruction operands must be the same size
- Attempt to execute non-instruction in mips assembler?