472,780 Members | 1,244 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

Find the equivalent MIPS assembly code for the C program as follows:

Find the equivalent MIPS assembly code for the C program as follows:
a)
x = 5
y = x - 2
a = x * 4
b = y * 2
z = (x + a) - (y + b)
Knowing that the variables x, y, a, b are 32-bit integers.
Thanks!!!
Sep 15 '21 #1
1 4263
dev7060
626 Expert 512MB
Find the equivalent MIPS assembly code for the C program as follows:
a)
x = 5
y = x - 2
a = x * 4
b = y * 2
z = (x + a) - (y + b)
Knowing that the variables x, y, a, b are 32-bit integers.
What have you done so far?
Sep 18 '21 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Bill | last post by:
I created a shared assemble and dropped it into Windows\assembly. Browsing this directory shows that it is in there and the properties looks as expected. However, when I attempt to add this as a...
2
by: CK | last post by:
Hi Everybody, Please construe me to embody assembly language program into c programming . Please give some conception or construe me. By CK
14
by: Teis Draiby | last post by:
I am about to move my C++ application to C#. Parts of my previous application consisted of inline SSE2 assembly code optimized for the P4 processor. What options do I have to integrate that part...
5
by: Dica | last post by:
i need to create a clock object which is apparently in the clock class under System.Windows.Media.Animation. i've tried adding a reference to this assembly, but the closest thing i can find is...
10
by: ThunderMusic | last post by:
Hi, I need to optimize a close loop. Usually I would use assembly, but I don't event know if it's available to VB.NET. I'll explain the case and maybe some of you will be able to advise me. I...
2
by: mirandacascade | last post by:
Situation is this: 1) must write application that does the following: a) creates an xml document, the contents of which, is a request transaction b) send xml document to destination; I am...
6
by: AndyL | last post by:
Hi, What would by a python equivalent of following shell program: #!/bin/sh prog1 > file1 & prog2 > file2 &
0
by: summair | last post by:
Hi! I am using Visual Studio.net 2005 for my "Windows Form Application" in vc++.net i want to use assembly code in it like this __asm { //assembly language code } can somebody help me how...
4
by: jmarcrum | last post by:
I have to modify this assembly code in order to make it use interrupts. Right now, when I push button 1 on the microprocessor the count increments once (the LED's count in binary, using only 3 LED's...
40
by: Campy Happer | last post by:
Hello all, I would like to bring to your attention a concept and a term for it that I think is long overdue. But first: In the bad old days of programming, before subroutines were even...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.