Funny Binary to Mips

This is a discussion on Funny Binary to Mips within the Windows Programming forums, part of the Platform Specific Boards category; MY friend told me that this was something neat so I've been working on it for a while but I ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    32

    Funny Binary to Mips

    MY friend told me that this was something neat so I've been working on it for a while but I can't see it. He gave a set of machine code, told me it'd be interesting in MIPS instruction set (The return value)

    The set were:

    Code:
    0x3c111001
    0x3c011001
    0x34320006
    0x82290000
    0x2128002a
    0xa2280000
    0x22310001
    0x1632fffc

    so what I did was convert them to binary

    Code:
    00000011 11000001 00010001 00000000 00000001
    00000011 11000000 00010001 00000000 00000001
    00000011 01000011 00100000 00000000 00000110
    00001000 00100010 10010000 00000000 00000000
    00000010 00010010 10000000 00000010 00001010
    00001010 00100010 10000000 00000000 00000000
    00000010 00100011 00010000 00000000 00000001
    00000001 01100011 00101111 11111111 00001100
    but i still don't see anything yet :/ so I tried converting it into MIPS:

    and I got something like

    Code:
    or    $v0,$0,$0
    Loop: slt$t0,$0,$a1
    beq$t0,$0,Exit
    add   $v0,$v0,$a0
    addi$a1,$a1,-1
    j     Loop
    Exit
    and the output was..well something not really funny I guess.
    What did I do wrong???? Help me solve this "joke" haha
    Last edited by clag; 02-22-2010 at 01:22 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. arrays vs lists? And containers in general!
    By clegs in forum C++ Programming
    Replies: 22
    Last Post: 12-03-2007, 02:02 PM
  2. Replies: 0
    Last Post: 11-04-2006, 11:07 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21