Top "Mips" questions

MIPS is a RISC instruction set architecture (ISA).

Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code

I am trying to install Nachos on my laptop and I have Ubuntu 11.04 on the laptop. The code is in …

ubuntu gcc mips cross-compiling nachos
Mips how to store user input string

I used to think I knew how to do this. But then I actually tried to do it. Here's the …

string mips spim
Difference between "move" and "li" in MIPS assembly language

I was practicing converting C code into MIPS assembly language, and am having trouble understanding the usage of move and …

c assembly mips
MIPS: Integer Multiplication and Division

So I'm building a calculator program in MIPS and I'm trying to write the multiply and divide functions. Currently I …

mips
How to Calculate Jump Target Address and Branch Target Address?

I am new to Assembly language. I was reading about MIPS architecture and I am stuck with Jump Target Address …

assembly mips machine-code
Greater than, less than equal, greater than equal in MIPS

Given two registers $s0, $s1, how can I convert the following pseudocode into MIPS assembly language using only the slt (…

assembly mips
Reading and printing an integer in mips

My program is suppose to read an integer and print it back to the user but every time it just …

integer mips mars-simulator spim
MIPS assembly for a simple for loop

I need to translate this C code to MIPS assembly. Here is the C code: int tmp = 0; for (int j = 0; …

assembly mips mips32
Creating (and accessing) an array in MIPS

I'm trying to create an array in MIPS Assembly, and then add all the elements together. However, when I try …

arrays assembly mips mars-simulator
In MIPS, what are HI and LO

I'm reading about division in MIPS and I've found that div Divides $s by $t and stores the quotient in $…

assembly mips cpu-registers