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
- What’s the difference between “{}” and “[]” while declaring a JavaScript array?
- How to declare an array in Python?
- Python – TypeError: ‘int’ object is not iterable
- How to append something to an array?
- TypeError: list indices must be integers or slices, not str
- Why there is no do while loop in python
- Sorting an array of objects by property values
- How can I remove a specific item from an array?
- How do I check if an array includes a value in JavaScript?
- Python – TypeError: ‘int’ object is not iterable
- How to dynamically allocate arrays in C++
- How to dynamically allocate arrays in C++
- ValueError: setting an array element with a sequence
- Python for-in loop preceded by a variable
- Difference between “as $key => $value” and “as $value” in PHP foreach
- How do I determine whether an array contains a particular value in Java?
- How to initialize an array in Java?
- Java 8 Iterable.forEach() vs foreach loop
- Initialize part of an array in java
- What is the difference between ++i and i++?
- How do I find the length of an array?
- TypeError: only size-1 arrays can be converted to Python scalars (matplotlib)
- Accessing the index in ‘for’ loops?
- How to add elements to an empty array in PHP?
- How to split a string into an array in Bash?
- How do I declare and initialize an array in Java?
- Convert list to array in Java [duplicate]
- Accessing the index in ‘for’ loops?
- Sort an array in Java
- What is the difference between ++i and i++?
- Array to String PHP?
- What’s the simplest way to print a Java array?
- How can I remove a specific item from an array?
- Find object by id in an array of JavaScript objects
- Initializing an array of objects
- Explanation on Integer.MAX_VALUE and Integer.MIN_VALUE to find min and max value in an array
- How can I access and process nested objects, arrays or JSON?
- What’s the simplest way to print a Java array?
- Converting array to list in Java
- Passing an array by reference
- Return array in a function
- Numpy ValueError: setting an array element with a sequence. This message may appear without the existing of a sequence?
- numpy: Invalid value encountered in true_divide
- How do I determine the size of my array in C?
- What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it?
- Iterate through a C++ Vector using a ‘for’ loop
- How do I create an empty array/matrix in NumPy?
- ValueError: operands could not be broadcast together with shapes (5,) (30,)
- Error : Index was outside the bounds of the array.
- Iterate through a C++ Vector using a ‘for’ loop
- char *array and char array[]
- How do I create an array of strings in C?
- numpy matrix vector multiplication
- Split string into array
- Converting array to list in Java
- Passing an array by reference
- Good input validation loop using cin – C++
- Java Error “Exception in thread “main” java.util.InputMismatchException” On an Array program
- How can I remove a specific item from an array?