You need to end your program with a jr $ra
, otherwise the processor will just keep executing whatever random instructions that happen to come after the sw $t0, 0($s1)
Related Posts:
- MIPS – Fetch address not aligned on word boundary
- error: “store address not aligned on word boundary”
- What is the use of a $zero register in MIPS?
- Dynamic vs Static instruction count
- Why shift a bit using sll and such in MIPs Assembly?
- Understanding how `lw` and `sw` actually work in a MIPS program
- MIPS architecture syscall instruction
- MIPS: lw (load word) instruction
- MIPS fetch address not aligned on word boundary, used .align 4, still no go
- Loading and storing bytes in MIPS
- Converting a C program to MIPS
- MIPS assembly for a simple for loop
- While Loop in Mips (New to Mips)
- what does .space do in mips?
- mips .word function and differences between 2 codes
- Why doesn’t there exists a subi opcode for MIPS?
- Mips how to store user input string
- What exactly does the lb instruction do?
- What is the difference between la and li in opcodes in MIPS?
- Bubble sort algorithm in MIPS
- How do I correctly use the mod operator in MIPS?
- what is the use of ori in this part of MIPS code?
- Storing a user’s input in MIPS
- MIPS ‘nor’ usage in code
- Integer absolute value in MIPS?
- MIPS Assembly – lui $t0, 4097?
- Reading and printing an integer in mips
- Difference between “move” and “li” in MIPS assembly language
- Greater than, less than equal, greater than equal in MIPS
- is there is a compiler which convert c++ code into mips assembly language
- MIPS program jr $ra instructions and stack handling
- Multiplying a register value by a constant in MIPS?
- Arithmetic Overflow in mips
- Subtract two input numbers
- Assembly language (MIPS) difference betweent addi and add
- MIPS Address out of range (MARS)
- Difference between “addi” and “add” for pseudoinstruction “move” in MIPS?
- Printing newline in MIPS
- sorting array in mips (assembly)
- Multiplication by a power of 2 using Logical shifts in MIPS assembly
- the functions (procedures) in MIPS
- MIPS instruction and machine code
- How do you write code to do factorials in MIPS?
- Convert from Java to MIPS
- MIPS Recursive Fibonacci Sequence
- Printing from a declared array in MIPS
- Understanding Assembly MIPS .ALIGN and Memory Addressing
- MIPS to C Translation