Convert this C code into Assembly (MIPS)

Problem: Hello there, I am an old guy who understands only low level languages and my son showed me this C code: f = (g + h) - (i + j);
Would you help convert this to assembly?

Solution:
#Remember that arithmetic operations can have at most three operands.
sum x, g, h #Puts the addition of g and h in x
sum y, i, j #Puts the addition of i and j in y
sub f, x, y #Puts the subtraction of x and y into f


5 comments :

  1. Indeed it was a difficult task to convert that algebraic sum into assemble but kudoos to you that you did it very efficiently and helped that guy.

    ReplyDelete
  2. thaks allowed me to comment at here
    very informative post, also visit our website

    situs judi slot

    prediksi togel

    ReplyDelete
  3. buy tik tok likes Increase your exposure on social media! Check out our deals and buy Instagram Followers, Buy Youtube Subscribers, and more! Fast, cheap, and 24/7 Support.

    ReplyDelete
  4. home painters round rock With 30 years of experience, Kolor Pros Painting gives you the best results available. Our House Painters can handle any job, and can even repair drywall, or replace rotted wood trim. Call us today, and see what we can do for you!

    ReplyDelete
  5. san angelo exterminator As a family-owned and run business, we take pride in assuring that we use the best products and the latest treatment methods to help deliver great results. Proudly serving residents and commercial lots of any size. Give us a call to see our pest control San Angelo services in action.

    ReplyDelete

Follow Me

If you like our content, feel free to follow me to stay updated.

Subscribe

Enter your email address:

We hate spam as much as you do.

Upload Material

Got an exam, project, tutorial video, exercise, solutions, unsolved problem, question, solution manual? We are open to any coding material. Why not upload?

Upload

Copyright © 2012 - 2014 Java Problems  --  About  --  Attribution  --  Privacy Policy  --  Terms of Use  --  Contact