assembly language help

Discussion in 'OT Technology' started by elekt, Oct 24, 2005.

  1. elekt

    elekt New Member

    Joined:
    Aug 19, 2004
    Messages:
    1,719
    Likes Received:
    0
    Location:
    Los Angeles
    hey you guys. I am just trying to learn some assembly and am pretty lost on it. Not for a class or anything, just want to round out my computer knowledge.

    so anyways for the question now:

    i want to create an assembly program, i've been using PCSpim to compile and would like to continue doing so if possible.

    I want to create a typical insertion sort program. If anyone has code for this that they could show me I'd be very thankful. :bowdown:

    I can write the program in C and java but assembly is too new for me.

    I want to use it to sort an array of memory and use the insertion sort method to sort words. however any examples of sorting numbers or letters would be helpful.
     
  2. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    I'd suggest writing it in C, then compiling the C to ASM (using the -s option in gcc). It'll give you x86 assembly (you probably want MIPS), but at least it'll give you some ideas.
     
  3. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    You SO need a book on x86 assembly. And its not a compiler... its an assembler.
     
  4. samm

    samm Next in Line

    Joined:
    Dec 22, 2000
    Messages:
    2,630
    Likes Received:
    0
    Location:
    San Jose, CA
    If he wants to look at the assembly code generated by gcc, he does not need an assembler. An assembler translates the assembly code from the compiler into object code for the target architecture.
     
  5. elekt

    elekt New Member

    Joined:
    Aug 19, 2004
    Messages:
    1,719
    Likes Received:
    0
    Location:
    Los Angeles
    no one has any examples?
     
  6. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    what do u need examples of? i have some asm code lying around that does random stuff.

    most if it runs only on legacy OS's. (Win DOS/95/98).

    When i took my ASM class, we used old school Arrow Assembler.
     
  7. ohio_wookie

    ohio_wookie New Member

    Joined:
    Oct 25, 2005
    Messages:
    10
    Likes Received:
    0

Share This Page