Most voted "mips" questions
MIPS, acronym for Microprocessor without interlocked pipeline Stages (microprocessor without interconnected pipeline stages), is a RISC microprocessor architecture developed by MIPS Computer Systems.
Learn more…18 questions
Sort by count of
-
6
votes1
answer77
viewsWhat are the real problems for those working with Assembly development?
I am studying the architecture and implementation in MIPS, but as I do not work at low level what I am doing are basic initial exercises in any beginning of learning, I would like to know what are…
software-architecture assembly architecture-computers mipsasked 9 years, 3 months ago Emanoel 1,621 -
6
votes1
answer1312
viewsDoubt in substituting string Assembly (MIPS)
I have to make a code in Assembly mips requesting a sentence and if the sentence contains the character - is replaced by the character *. So far I’ve only managed to reach that code: .data buffer:…
-
4
votes3
answers2830
viewsLoop of repetition in Assembly
How can I do a repeat a certain number of times in Assembly (no MIPS)? Example in pseudocode, assuming the variable registrador be a registrar that I want to receive all numbers from 1 to 6 (one at…
-
3
votes0
answers237
viewsBinary search mips
I am developing a code in mips in order to perform a binary search recursively, well along the development have arisen some doubts, being them: Right after my function call, I pop my arguments, but…
-
3
votes0
answers41
viewsProblem with Assembly subtraction
My teacher sent this simple code in C, to turn it into Assembly: int num1, num2, resultado; printf("Digite o primeiro numero: \n"); scanf("%d", &num1); printf("Digite o segundo numero: \n");…
-
2
votes1
answer362
viewsDeviation error in Assembly (MIPS)
I need to transform the following c code to MIPS Assembly: int i; int vetor[8]; for(i=0; i<8; i++) { if(i%2==0) vetor[i] = i * 2; else vetor[i] = vetor[i] + vetor[i-1]; } By doing this I arrived…
-
2
votes1
answer2495
viewsBubble Sort in Assembly (MIPS)
My teacher asked us to implement Bubble Sort in the MARS environment but I’m not getting it. There is some error in the code. Can anyone find the error? The way out should be {1, 2, 3, 4, 5, 6, 7,…
-
2
votes0
answers117
viewsAssembly Mips: Runtime Exception at 0x004000ac: store address not Aligned on word Boundary 0x1001040e
In this code, I am having trouble using the sw command. Always an error appears as follows: Runtime Exception at 0x004000ac: store address not Aligned on word Boundary 0x1001040e Honestly, I’m…
-
2
votes1
answer5984
viewsConvert C code to Assembly MIPS?
How can I generate the assembly code corresponding to the code below: #include <stdio.h> #define LINHA 4 #define COLUNA 5 int tab [LINHA][COLUNA] = { 2016,2012,2008,2004,2000,…
-
2
votes0
answers37
viewslist, delete, or insert, select array in mips
I have some questions about an academic paper in which the teacher asks to list, delete, insert and select matrices. If someone could explain to me how to do thank you, follows down the slides of…
-
1
votes1
answer436
viewsImplementation of C strcpy function in MIPS using MARS simulator
Why the code below does not work? Error in strcpy.asm line 9: Runtime Exception at 0x00400014: fetch address not Aligned on word Boundary 0x00000001 .text .globl main main: lw $a0, destino # Carrega…
-
1
votes1
answer159
viewsRepeat(while) structure conversion in C to Assembly mips
Suppose that i and kcorrespond to the registers $s3 and $s5, and the basis of array save is in $s6. What code Assembly MIPS corresponding to that code segment C? while( s a v e [ i ] == k ) i += 1 ;…
-
1
votes0
answers24
viewsAdd character if equal after same MIPS
I want to do a program in MIPS where after finding a vowel, add the following consonant to it. For example, after a, add b, after and add f. At the end it’s like this: Word introduced: Olae Final…
mipsasked 7 years, 5 months ago Razvan Balaci 11 -
0
votes1
answer318
viewsDoubts Assembly mips
Could someone explain to me how to use And, Andi, Or, Ori, Nor in Assembly mips? Because I would like to do something like this: se (num1 > 0) e (num2 > 0) entao se (num1 <= 10) e (num2…
-
0
votes1
answer70
viewsCapture Mars mouse click
Is there any syscall or other mechanism that can capture the mouse click by the Mars mips simulator .
-
0
votes1
answer88
viewsMIPS: Label with number(?) on Branch on Not Equal
Okay, I have the following exercise: Taking into account the values present in the registers $t0 = 0x0000001A, $t1 = 0x00000006 and the following code to be executed by the MIPS processor, answer:…
-
0
votes1
answer159
viewsHow do I receive user input?
.data StringOriginal: .asciiz "Frase Introduzida:\n" #ex_msg_og StringFinal: .asciiz "\nFrase Encriptada:\n" String: .asciiz "Hello World" .text Main: la $v1,String #load addr of string into $v0 la…
-
-1
votes1
answer328
viewsHow to check if the character I typed is a letter or number in MIPS
I am a beginner in MIPS programming (I use MARS), my teacher asked us to do a program where given 9 digits of a CPF he calculates the last two digits of this CPF. The program is working, but my…