Change the line:
add $t1, $s0, $t1
To:
add $s0, $s0, $t1
Also, there is no need for use of the data segment. Just set $t1 using:
li $t1, 100
Related Posts:
- what does +=, -=, *= and /= stand for in Python?
- While, Do While, For loops in Assembly Language (emu8086)
- Guess a number program with Java
- How do you write code to do factorials in MIPS?
- Printing from a declared array in MIPS
- What is the difference between range and xrange functions in Python 2.X?
- How to iterate over a JavaScript object?
- Sentinel while loop for C++
- Traverse a list in reverse order in Python
- Exit while loop in Python
- What condition does while(true) test? When is it true and false?
- When to use “while” or “for” in Python
- Angular 2 Cannot find control with unspecified name attribute on formArrays
- python “TypeError: ‘numpy.float64’ object cannot be interpreted as an integer”
- Bubble sort algorithm in MIPS
- How would I use a while loop to keep requesting user input
- What is the best way of determining a loop invariant?
- Why does Lua have no “continue” statement?
- How to use a Do-while loop that continuously prompts a user?
- For-each over an array in JavaScript
- Pig Latin Translator
- How to emulate a do-while loop?
- Loop through an array in JavaScript
- Accessing the index in ‘for’ loops?
- Good input validation loop using cin – C++
- How to avoid “RuntimeError: dictionary changed size during iteration” error?
- Reading from file in c++ ifstream
- Loop through an array of strings in Bash?
- Iterate through a HashMap [duplicate]
- ‘do…while’ vs. ‘while’
- foreach vs someList.ForEach(){}
- MIPS architecture syscall instruction
- MIPS fetch address not aligned on word boundary, used .align 4, still no go
- How do I loop through or enumerate a JavaScript object?
- Subplot for seaborn boxplot
- What is the best way to iterate over a dictionary?
- How do I apply the for-each loop to every character in a String?
- Converting a C program to MIPS
- Correct way of looping through C++ arrays
- Java compressing Strings
- Batch script loop
- Emulating a do-while loop in Bash
- How can I stop a While loop?
- Fill array with random numbers within a specified range (C++)
- Pythonic way to iterate through a range starting at 1
- what does .space do in mips?
- mips .word function and differences between 2 codes
- Why doesn’t there exists a subi opcode for MIPS?
- illegal use of break statement; javascript
- What is Innermost loop in imperfectly nested loops?
- Loop backwards using indices in Python?
- Why does using from __future__ import print_function breaks Python2-style print?
- How can I loop through all rows of a table? (MySQL)
- Mips how to store user input string
- What exactly does the lb instruction do?
- Breaking out of nested loops
- Is there a “do … until” in Python?
- extended initializer lists only available with
- How do I correctly use the mod operator in MIPS?
- error: ‘for’ loop initial declarations are only allowed in C99 mode [duplicate]
- How to break out of jQuery each loop?
- MySQL foreach loop
- Iterating over a 2 dimensional python list [duplicate]
- Infinite for loops possible in Python?
- what is the use of ori in this part of MIPS code?
- Storing a user’s input in MIPS
- python: restarting a loop
- ORA-06502: PL/SQL: numeric or value error: character string buffer too small
- error: “store address not aligned on word boundary”
- 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
- MIPS program jr $ra instructions and stack handling
- Iterator Loop vs index loop
- Assembly language (MIPS) difference betweent addi and add
- Printing newline in MIPS
- Printing one character at a time from a string, using the while loop
- sorting array in mips (assembly)
- How do I exit a while loop in Java?
- What is the “right” way to iterate through an array in Ruby?
- How do I break out of nested loops in Java?
- How to iterate through table in Lua?
- Multiplication by a power of 2 using Logical shifts in MIPS assembly
- How do I convert this for loop into a while loop?
- do-while loop in R
- PHP array printing using a loop
- MIPS instruction and machine code
- How to make music autoplay and loop in background
- MIPS Recursive Fibonacci Sequence
- How to loop over something a specified number of times in JSTL?
- Understanding Assembly MIPS .ALIGN and Memory Addressing
- What is the use of a $zero register in MIPS?
- MIPS to C Translation
- Dynamic vs Static instruction count
- Attempt to execute non-instruction in mips assembler?
- Python: Continuing to next iteration in outer loop
- Difference between “while” loop and “do while” loop
- how to stop a loop arduino
- What does hasNext() in a While do?