1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

  2. ROCKETS GAMEDAY
    Will facing a tanking team help? Rockets in Memphis Friday night to face the Grizzlies. Come join Ben & Dave for live reaction in postgame!

    LIVE! ClutchFans on YouTube

8086 assembly language help (NASM)

Discussion in 'BBS Hangout' started by Bojangles, Mar 30, 2010.

  1. Agent94

    Agent94 Member

    Joined:
    Jun 28, 2002
    Messages:
    4,174
    Likes Received:
    5,005
    I don't have AIM. I'll take a look at this tonight when I get home from work. I looked at my copy of Mastering Turbo Assembler last night and it has code in it to convert strings to integers.
     
  2. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
  3. Agent94

    Agent94 Member

    Joined:
    Jun 28, 2002
    Messages:
    4,174
    Likes Received:
    5,005
    I posted some code on Wednesday. http://pastebin.org/130179.

    The IO functions are DOS, not Linux, since I don't have a Linux box.
    I have not had time to do the intToString and stringToInt functions. The basic structure is there and it compiles and runs.
     
  4. Agent94

    Agent94 Member

    Joined:
    Jun 28, 2002
    Messages:
    4,174
    Likes Received:
    5,005
    Its done except for checking for negative numbers. http://pastebin.org/133209

    Compile with "nasm test.asm -fbin -o test.com"

    You owe me a few hundred dollars :)
     

Share This Page