Top "Spim" questions

spim is a self-contained simulator that runs [tag:mips32] programs

Use of Frame Pointer MIPS

i need to convert my code from stack pointer to only use frame pointer, how can i do so? i …

assembly mips spim qtspim
Whats wrong with this MIPS/QtSPIM While Loop Code

The programs runs with expected output but with the errors below Code .data .text .globl main main: addi $t0, $t0, 0 # …

assembly mips spim
MIPS: Reading a string from command line argument

I'm new to Assembly. I'm having some trouble reading a string from the command line arguments. I would like to …

assembly command-line-arguments mips computer-architecture spim
In a MIPS assembly `addi` instruction, how is a hexadecimal immediate interpreted?

Is there is a standard or recommendation for how the addi instruction (and others) should be interpreted in assembly, when …

assembly mips mars-simulator spim immediate-operand
MIPS dynamic memory allocation using sbrk

I was trying to use sbrk for dynamic memory allocation. But, being a newcomer to SPIM and MIPS, I was …

mips spim sbrk
MIPS 'nor' usage in code

In my textbook, there are these lines of code: addu $t0, $t1, $t2 nor $t3, $t1, $zero sltu $t3, $t3, $…

mips spim
C to MIPS translation

Trying to convert this c code into MIPS and run it in SPIM. int A[100], B[100]; for(i=1; i<100; 1++){ …

c mips spim
Finding a character of a string in MIPS

how would I find a particular character in a user inputed string that has a known length in MIPS? I've …

assembly mips spim
MIPS "Unaligned address, Exception 5" error

I'm a noob using SPIM MIPS simulator. I get the error in title X 26 times, when I try to initialize …

assembly mips spim
calculating offset

I have a question from homework. I have a BNE instruction at 0x88888888, and I need to tell what is …

assembly mips spim