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!

8086 assembly language help (NASM)

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

  1. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
    This is sort of a do my HW for me thread and I realize assembly language isn't tremendously popular. I've got a pain in the ass assignment I've been working on for a few days with some help from the instructor and doing hours of googling for sample code from other programs.

    If I can get at least 50-60% of the work, would anyone here mind helping?
     
  2. codell

    codell Member

    Joined:
    Aug 26, 2002
    Messages:
    19,312
    Likes Received:
    715
    I will help, but I will require 40-50% of your post degree earnings.

    :)
     
  3. Bojangles

    Bojangles Contributing Member

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

    Depressio Member

    Joined:
    Mar 3, 2009
    Messages:
    6,416
    Likes Received:
    366
    I did a little x86 in my compilers course 5 years ago...

    ... but I don't remember any of it. Sorry. :(
     
  5. wizkid83

    wizkid83 Member

    Joined:
    May 20, 2002
    Messages:
    6,347
    Likes Received:
    850
    is it the binary one? your calculator in windows have binary conversions
     
  6. rawool

    rawool Member

    Joined:
    Mar 28, 2006
    Messages:
    2,686
    Likes Received:
    273
    I'm reporting you to your university.
     
  7. Kyakko

    Kyakko Member

    Joined:
    Aug 15, 2002
    Messages:
    2,161
    Likes Received:
    39
    that's machine language. assembly is close.
     
  8. The Real Shady

    Joined:
    Jun 8, 2000
    Messages:
    17,173
    Likes Received:
    3,972
    My response is 0
     
    1 person likes this.
  9. lalala902102001

    Joined:
    Jul 4, 2002
    Messages:
    6,629
    Likes Received:
    445
    Go to Intel's website and search for x86 programmer's manual. it's all there. :grin:
     
  10. kevC

    kevC Member

    Joined:
    Jul 19, 2007
    Messages:
    7,394
    Likes Received:
    5,117
    Well that's a little vague. I'm familiar with assembly language but it could be really easy or a huge pain in the ass depending on the assignment is.
     
  11. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
    because I never thought of that... lol
     
  12. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
    well here's the prompt. the assignment is a fair pain in the ass. i won't sugar coat it, lol.


    Your assignment is to write an assembly language program that asks the user for a signed
    integer, adds 1 to the number and then prints the original number and the result after adding 1. You must write the code to input and output the number and result yourself, remember that you only have the instructions to input and output strings, so you will have to convert a string to a signed integer, and a numeric integer back to a string. This will include a way to read a string, convert to int value, and then convert int value back to string and write it. Remember to check for a positive or negative sign. Adding 1 should work with both positive and negative answers. You must use the int 80h instruction to get the inputs and outputs. Attached is an example program that prompts for an integer, reads it as a string of characters, and writes it back to the screen
     
  13. Agent94

    Agent94 Member

    Joined:
    Jun 28, 2002
    Messages:
    3,648
    Likes Received:
    4,123
    So you just have to convert the string to a number, add one, and convert the number back to a string. That sounds pretty easy. I used to do some x86 assembly years ago. Upload your code somewhere and I will take a look and help you out.
     
  14. Agent94

    Agent94 Member

    Joined:
    Jun 28, 2002
    Messages:
    3,648
    Likes Received:
    4,123
    I found this http://www.daniweb.com/code/snippet251688.html.
    I am familiar with Turbo Assembler. This code looks a little different than what I remember. One thing you could do is write the function in C. Then use GCC to compile it to assembly. Then refactor it down to the bare essentials.
     
  15. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
    Well if it sounds easy to you, I'm slightly relieved lol.

    I'll work on my code a little bit more and in about an hour I'll upload it to pastebin or one of those code-sharing template sites. Thanks a lot for any help you could give.
     
  16. The Drake

    The Drake Member

    Joined:
    Feb 26, 2007
    Messages:
    2,172
    Likes Received:
    289
    Still got a copy of your "Me Portfolio?" Just turn that in and you should be fine.
     
  17. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
    rofl. yeah man. all I gotta do is turn that **** in and I'll likely get an A
     
  18. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
  19. Bojangles

    Bojangles Contributing Member

    Joined:
    Feb 4, 2010
    Messages:
    1,389
    Likes Received:
    53
    Agent do you have aim or anything by chance?>
     
  20. MoonDogg

    MoonDogg Member

    Joined:
    Nov 12, 1999
    Messages:
    5,167
    Likes Received:
    495
    Line 81 jiggyjiggy:

    That should be changed to getfunky:

    jiggyjiggy is a subclass of getfunky. getfunky is much more robust.
     

Share This Page