FAQ Database Discussion Community


MIPS - is there a way to transfer the value of the flag in coprocessor 1 to integer registers of coprocessor 0?

assembly,floating-point,comparison,mips,spim
I'm making a compiler for a school project and I am using MIPS assembly as my target code. But that's not important. I know that operations involving floating-point numbers are done in coprocessor 1 and that result of comparison instructions like c.eq.d and c.le.d are in the flag that can...

MIPS - How to store the first 256 numbers in memory

assembly,mips,spim
I have to write a program in assembly language that is to store in memory the first 256 integers from 0 to 255. Here is the code I wrote (I am a beginner with the assembly language): .data memory: .space 256 .text li $t0, 0 la $s0, memory sb $s0,...