Mips Definition and 62 Threads
-
X
Help with converting machine language instruction into MIPS assembly instruction
I think it's easy, but I don't get it. Given the machine language instruction 0x00221820. What MIPS assembly instruction does it represent? I know the solution. It's add $3, $1, $2 I just don't know how to get there. I know I have to convert the numbers into binary first. So you have...- XodoX
- Thread
- Assembly Instruction Language Machine Mips
- Replies: 9
- Forum: Programming and Computer Science
-
P
MIPS: Saving a String to register(s)?
Homework Statement I am currently working on a MIPS program that is supposed to convert letters, either lowercase or uppercase, to a phone number. Two questions: 1. With the user entering a string, how do I go about in saving the string into the registers? Or would memory be a more...- pags920
- Thread
- Mips String
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
S
Mips assembly comparing strings
Homework Statement I need to compare a user input with a string that's already in the program. If the operation entered is ‘*’, you should print out the product of the 2 numbers; if the operation entered is ‘/’, you should print out the quotient and the remainder. the multiplication...- SpiffyEh
- Thread
- Assembly Mips Strings
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
S
How can you reverse the order of words in a string using MIPS Assembly?
Homework Statement The goal here is to write some MIPS functions to solve a common technical interview question: how can you reverse the order of the words in a string? For example, reversing the words in the string I Love Lucy would result in Lucy Love I. A string is just an array of...- SpiffyEh
- Thread
- Assembly Loop Mips
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
How to Parse an Integer in MIPS?
I am taking a MIPS class this semester and for some reason I am having a tough time parsing out an integer. Can someone give me a hint what I am doing incorrectly here? Below, I am attempting to parse the "7" and "2" out that are currently stored in register $t1. The reason for this is I...- iamhumble
- Thread
- Mips
- Replies: 1
- Forum: Programming and Computer Science
-
E
Printing an array of char to a string in MIPS
I am trying to mimic the function below in MIPS: extern void print_int(int x); extern void print_string(char x[]); char y[1]; void main(void) { char y[1]; y[0] = 'a'; y[1] = '\0'; print_string(y); } and my MIPS code for the above C code is below can someone tell me...- -EquinoX-
- Thread
- Array Mips Printing String
- Replies: 1
- Forum: Programming and Computer Science
-
S
MIPS - write a function to remove blanks
MIPS -- write a function to remove blanks So I am new to MIPS and I have been working on a program that my brother had for a class a while back ago and I am trying to do the following... Write a function RemoveBlanks() that inputs an asciz string consisting of a list of words. The...- Sasha7440
- Thread
- Function Mips
- Replies: 1
- Forum: Programming and Computer Science
-
T
MIPS program which reads in a sequence of numbers entered by the user
I've been working on a program which reads in a sequence of numbers entered by the user. It's read in as a string and then converted to numbers. Then I am suppose to get the sum of those numbers and report it back. I got most done and I know I'm close (hope!) but I am stuck at trying to get the...- tpluscomb
- Thread
- Mips Numbers Program Sequence
- Replies: 7
- Forum: Programming and Computer Science
-
E
Pros and cons of MIPS relative to instruction set choices
could someone help me with this, my ideas are sort of not precise give pros and cons of MIPS relative to these instruction set choices: 1. supporting indexed addressing mode 2. supporting only word-sized access to memory 1. --- dunno, sure if it all were immediate, it would be a mess...- EvLer
- Thread
- Choices Instruction Mips Relative Set
- Replies: 1
- Forum: Electrical Engineering
-
M
MIPS 32 ASM to C code, did i do this right?
have the following MIPS 32 asm code: Assuming B is an array of 10 words whose base address is in register $s0, andvariable c and i are in $s1 and $s2, respectively. What is the C statement implemented by the below MIPS assembly code? add $t0, $s2, $s2 add $t0, $t0, $t0 lw $t1, 0($s0) lw...- mr_coffee
- Thread
- C code Code Mips
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
A
MIPS programming - store a list of numbers
Hi, I am a completely newb to the MIPS assembly language and I'm having a bit of trouble with this one procedure. Basically, i want to have the user enter in a list of numbers. The user can keep entering in numbers but when -999 is entered, the user cannot enter in anymore numbers. This list...- ACLerok
- Thread
- List Mips Numbers Programming
- Replies: 3
- Forum: Programming and Computer Science
-
A
Where can I find small MIPS programmes for learning and practice?
Hello all. I'm studying a bit of MIPS asm here and there in my course. I don't have any work requiring it at the moment, but I am interested in learning more nifty stuff in this language. Does anyone have any small MIPS programmes (to run on PCSPIM perhaps) for me to look at? Thanks.- Adam
- Thread
- Mips
- Replies: 2
- Forum: Introductory Physics Homework Help