Use this tag for questions related to the 32 bits version of the MIPS architecture instruction set. See also [tag:MIPS].
Questions tagged [mips32]
632 questions
15
votes
2 answers
MIPS architecture 'syscall' instruction
What is the role of syscall instruction in MIPS?

Bob Jamaica
- 189
- 1
- 1
- 7
14
votes
5 answers
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; j < 15; ++j)
tmp = tmp * 2 + 3
This is my MIPS assembly code. Is it a correct translation? If you see any mistakes I would really like to…

user977154
- 1,045
- 4
- 19
- 39
14
votes
5 answers
where can I find a description of *all* MIPS instructions
Does anyone know of a web site where I can find a list of 32-bit MIPS instructions/opcodes, with the following features:
Clearly distinguishes between real opcodes and assembly-language macros (pseudo-instructions)
Describes the instruction…

Dan Lenski
- 76,929
- 13
- 76
- 124
12
votes
2 answers
What is the difference using NOP and stalls in MIPS
What difference does it make to use NOP instead of stall.
Both happen to do the same task in case of pipelining. I cant understand

StevieG
- 309
- 2
- 5
- 12
10
votes
6 answers
Why do we Sign Extend in load word instruction?
I am learning MIPS 32 bit. I wanted to ask that why do we Sign Extend the 16 bit offset (in Single Cycle Datapath) before sending it to the ALU in case of Store Word?
user379888
10
votes
1 answer
Stress-ng: RAM testing commands
Stress-ng: Can we test RAM using stress-ng? What are the commands used to test RAM on a MIPS 32 device?

Linuxknowledgeseeker
- 161
- 1
- 2
- 8
7
votes
1 answer
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 without using a loop. I have solved this problem but .space is confusing me. By making .space 20 do i make space for 5 words or is it doing something…
user3593450
7
votes
1 answer
Assembly MIPS - How do I store an integer from the user into memory?
So, I have no idea how assembly works or what I'm doing. I thought I did, but of course I was wrong. So here's my question - I don't even know how to let a user enter an integer so I can store it in memory. I also don't know if my variables are…

Eric Diviney
- 327
- 2
- 5
- 16
7
votes
1 answer
The difference between 'ADD' and 'DADD'
What is the difference between 'ADD' and 'DADD' MIPS instructions?
I know that 'DADD' stands for Double Word Add but I do not know the difference between 'ADD' and 'DADD'.
Moreover, it appears that both instructions have the same syntax,…

user3185252
- 85
- 1
- 5
6
votes
1 answer
Big Endian and Little Endian
Given is the snap shot of memory of a byte-addressable computer. What would be loaded into register $16 after execution of instruction lw $16, 24($17) if machine is big endian and when Little Endian. Register $17 contains 200.
Now according to me,…
user379888
6
votes
1 answer
Is it possible to cross-compile D source code for MIPS?
Is it possible to cross-compile D source code for MIPS?
For example, I want to compile a D "Hello, world." program that will run on TI AR7-based devices, which have MIPS32 processor and typically run Linux 2.4.17 kernel with MontaVista patches and…

XP1
- 6,910
- 8
- 54
- 61
6
votes
4 answers
MIPS: Size of .asciiz?
When determining the size of .asciiz string, should I take into
consideration the terminating character ?
For example:
.data
string: .asciiz "Hello"
The size of "string" is 5 or 6 (byte) ?

wonderingdev
- 1,132
- 15
- 28
6
votes
2 answers
Mips Linux: Logging Kernel Panic into mtd partition
We are experiencing kernel panics in the field for our MIPS based embedded devices. How can I log the kernel panic trace in the MTD partition? Do we have to write the trace only into MTD or is it possible to write over the NFS? Can anyone explain…

user4117880
- 135
- 3
- 9
5
votes
1 answer
Reversing a string in MIPS Assembly
I'm trying to prompt the user for the length of a string, allocate space for that string, then print it out in reverse.
For the life of me, I can't figure out why this isn't working..
Sample Output:
(spim) run
Please enter an integer:
7 …
user595334
5
votes
3 answers
How to load memory address without using pseudo-instructions?
I'm trying to learn MIPS assembly language by myself using MARS simulator.
For didactic reasons I'm limiting myself to not using pseudo-instructions.
While trying to get the address of some data into a register, I ran into a problem because I cannot…

Trinidad
- 2,756
- 2
- 25
- 43