I think you are trying do this:
.data a: .word 3, 2, 1, 8, 6, 9, 3, 4, 2, 5 nline: .asciiz "\n" .text .globl main main: li $v0, 0 la $t1, a loop1: bge $t0, 10, exit # load word from addrs and goes to the next addrs lw $t2, 0($t1) addi $t1, $t1, 4 # syscall to print value li $v0, 1 move $a0, $t2 syscall # optional - syscall number for printing character (space) li $a0, 32 li $v0, 11 syscall #increment counter addi $t0, $t0, 1 j loop1 exit: li $v0, 10 syscall
Related Posts:
- Loop through an array in JavaScript
- Loop through an array in JavaScript
- Why is using “for…in” for array iteration a bad idea?
- Fill array with random numbers within a specified range (C++)
- While Loop in Mips (New to Mips)
- While, Do While, For loops in Assembly Language (emu8086)
- Bubble sort algorithm in MIPS
- How do you write code to do factorials in MIPS?
- For-each over an array in JavaScript
- What is the difference between range and xrange functions in Python 2.X?
- what does +=, -=, *= and /= stand for in Python?
- Loop through an array php
- How to iterate over a JavaScript object?
- Loop through an array of strings in Bash?
- Pythonic way to combine FOR loop and IF statement
- How do I loop through or enumerate a JavaScript object?
- Error: can only iterate over an array or an instance of java.lang.Iterable
- Correct way of looping through C++ arrays
- Traverse a list in reverse order in Python
- What is the difference between ( for… in ) and ( for… of ) statements?
- When to use “while” or “for” in Python
- what does .space do in mips?
- Angular 2 Cannot find control with unspecified name attribute on formArrays
- What is Innermost loop in imperfectly nested loops?
- python “TypeError: ‘numpy.float64’ object cannot be interpreted as an integer”
- Guess a number program with Java
- extended initializer lists only available with
- Bank Account Java Program
- Infinite for loops possible in Python?
- Using multiple variables in a for loop in Python
- Badly placed ()’s error with the following shell script
- Simple average function in Javascript
- What is the best way of determining a loop invariant?
- Why does Lua have no “continue” statement?
- sorting array in mips (assembly)
- Create a two dimensional string array anArray[2][2]
- What is the “right” way to iterate through an array in Ruby?
- How to iterate through table in Lua?
- How do I convert this for loop into a while loop?
- PHP array printing using a loop
- Python loop counter in a for loop
- ValueError: setting an array element with a sequence
- How do I declare and initialize an array in Java?
- Convert list to array in Java [duplicate]
- Find object by id in an array of JavaScript objects
- Return array in a function
- Error : Index was outside the bounds of the array.
- char *array and char array[]
- Convert pandas dataframe to NumPy array
- Are vectors passed to functions by value or by reference in C++
- Does JavaScript have a method like “range()” to generate a range within the supplied bounds?
- Iterate through a HashMap [duplicate]
- How do I empty an array in JavaScript?
- Understanding how `lw` and `sw` actually work in a MIPS program
- How do I iterate over a range of numbers defined by variables in Bash?
- Why does python use ‘else’ after for and while loops?
- Double array initialization in Java
- MIPS: lw (load word) instruction
- Array of arrays (Python/NumPy)
- I want to declare an empty array in java and then I want do update it but the code is not working
- Calculating Standard Deviation & Variance in C++
- warning: ISO C++ forbids variable length array
- How do I create an array of strings in C?
- Fastest way to duplicate an array in JavaScript – slice vs. ‘for’ loop
- How do I do a deep copy of a 2d array in Java?
- Returning an empty array
- How to remove specific elements in a numpy array
- MIPS – Fetch address not aligned on word boundary
- How do I create an array of strings in C?
- MIPS assembly for a simple for loop
- How to properly malloc for array of struct in C
- C++ array assign error: invalid array assignment
- What is the difference between la and li in opcodes in MIPS?
- Reading CSV file and storing values into an array
- “Actual or formal argument lists differs in length”
- “…redeclared as different kind of symbol”?
- Numpy.dot TypeError: Cannot cast array data from dtype(‘float64’) to dtype(‘S32’) according to the rule ‘safe’
- Iterating over a 2 dimensional python list [duplicate]
- Storing a user’s input in MIPS
- While loop in batch
- php foreach with multidimensional array
- Remove element of a regular array
- struct has no member named
- Reading and printing an integer in mips
- java.lang.ArrayIndexOutOfBoundsException: 4 Error
- Getting the array length of a 2D array in Java
- How to memset char array with null terminating character?
- How to use ArrayUtils for array of objects, it doesn’t delete the content of an array
- MIPS Address out of range (MARS)
- Most efficient method to groupby on an array of objects
- Mysql where id is in array
- How to convert UTF-8 byte[] to string
- How do I concatenate two arrays in C#?
- Convert from Java to MIPS
- Hashing arrays in Python
- Using cin to input a single letter into a char
- Using the Pythagorean theorem with Java
- Array of Linked Lists C++
- How to enumerate an enum
- C++ float array initialization