Thread: C code understandings conversion to assembly (MIPS)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Registered User
    Join Date
    Dec 2017
    Posts
    1,644
    So now just add in a counter.

    Why are you using such a stupid function? It's just:
    Code:
    void f(int a) {
        return a >= 1 ? 1 : a;
    }
    Last edited by john.c; 02-03-2024 at 09:54 AM.
    A little inaccuracy saves tons of explanation. - H.H. Munro

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ to MIPS Assembly: how to approach
    By primoriscruor in forum C++ Programming
    Replies: 3
    Last Post: 11-29-2012, 08:46 AM
  2. MIPS Assembly Bubble Sort
    By cornfeller in forum Tech Board
    Replies: 17
    Last Post: 06-16-2012, 08:09 PM
  3. convert c programm to mips assembly
    By mariakat in forum Tech Board
    Replies: 8
    Last Post: 02-14-2011, 08:39 PM
  4. Converting C into MIPS Assembly
    By clag in forum C Programming
    Replies: 5
    Last Post: 02-13-2010, 07:48 PM
  5. A question of the MIPS assembly program
    By ok_good in forum Tech Board
    Replies: 0
    Last Post: 05-03-2006, 10:13 PM

Tags for this Thread