Top "Mips" questions

MIPS is a RISC instruction set architecture (ISA).

What is the difference between la and li in opcodes in MIPS?

For example in this code : #display message li $v0, 4 la $a0, Message #promt user to enter name li $v0, 8 la $10, …

assembly mips
Reading an integer into a local variable in MIPS

How can I read an integer into a local variable in MIPS ? Is it possible? The problem asks me to …

assembly mips spim mars
sra(shift right arithmetic) vs srl (shift right logical)

Please take a look at these two pieces of pseudo-assembly code: 1) li $t0,53 sll $t1,$t0,2 srl $t2,$t0,2 sra $…

assembly mips bit-shift twos-complement
Undefined reference to printf when using GCC cross compiler

I'm trying to get the following simple 'Hello World' program to compile using a cross compiler (GCC 4.9.2) targeting mips: #include &…

c gcc mips cross-compiling undefined-reference
Recursive function using MIPS assembly

I'm having some trouble on an assignment and would appreciate some help. I'm not asking for the answer, I prefer …

recursion mips fibonacci
MIPS instruction set move vs add/addi 0 for storing values?

I'm currently taking a Computer Organization and Assembly Language course that mainly uses the MIPS instruction set to teach assembly …

assembly mips
MIPS Address out of range (MARS)

I'm trying to write a simple code which save string and integer input into an array and then prints them (…

assembly mips mars-simulator
Accessing one character in a string

I am using something like SPIMS or MARS with syscall functions. I am reading in a string (and it works …

string assembly mips spim mars-simulator
what does .space do in mips?

I got this problem for an assignment in which we have put these number in an array and add them …

arrays assembly mips mips32
MIPS - How does MIPS allocate memory for arrays in the stack?

I'm quite new to the MIPS assembly language and am currently taking a class on computer architecture which has a …

assembly malloc mips computer-architecture