Need help comparing a premade string to a user input string
The assignment is to make a console that accepts commands, but I can’t even properly figure out comparing the string to parse the command.
Need help comparing a premade string to a user input string
The assignment is to make a console that accepts commands, but I can’t even properly figure out comparing the string to parse the command.
I am currently grappling with a logical problem in MIPS Assembly that has eluded my efforts to resolve it
Description of the code and its purpose : This MIPS assembly program reads a string of hexadecimal pairs separated by a dollar sign (‘$’), validates the input, converts the hexadecimal pairs to numerical values, and then sorts and prints the numbers as both signed and unsigned integers in a descending order.
Sorting an Array from Depth first sort to breadth first order MIPS
For this project, i am tasked with switching an array from depth first sort into breadth first and vice versa in mars4_5, I had already did the depth first to breadth first as below.
My MIPS code can assemble, but causes error
I made a MIPS code for a school project due tomorrow, and it worked when assembling. However, when it’s time to input some values, it always causes an error.
How to print (W)in (L)oss or (T)ie, whether the first player wins, looses or ties?
Gen_byte is generating two random bits 00,01,10 (not 11) for a rock paper scissors game. 00 is rock, 01 is paper and 10 is scissors. This play_game function is checking if player 1 wins, looses or ties. The problem is that when I run the test the output goes like WLTWLTWLTWLT… and doesn’t stop. I’m not quite sure where the problem is.
How to declare a function to make an array of N integers as argument in MIPS assembly
`.data
How to use lw or lb to read a char stored in memory?
I am trying to convert a integer to two’s compliment binary. When I attempt to read a the ascii value from memory it says my address is out of range. I’m fairly new to MIPS and can’t find a way around this or where I am going wrong.
Trouble with Sqrt Function/Program in MIPS Assembly
I’m working on converting a C program that finds the sqrt via a binary search to MIPS assembly and I am struggling. I believe that my program essentially is iterating one less time through the while loop than it should. For example, for the sqrt(16), it returns 8 and for sqrt(4) it returns 4. Here is the original C code I am trying to convert: