ASM questions

This is a discussion on ASM questions within the Game Programming forums, part of the General Programming Boards category; Since you generally need to know C++ with Assembly, assembler, whatever, I was wondering: What does it look like? What ...

  1. #1
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    ASM questions

    Since you generally need to know C++ with Assembly, assembler, whatever, I was wondering: What does it look like? What does the hello world porgram look like. What is the first "hello world" thing for ASM?
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    There's an asm forum over here that would be able to help you:
    www.flashdaddee.com/forums
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571

    Re: ASM questions

    Originally posted by Stan100
    Since you generally need to know C++ with Assembly, assembler, whatever, I was wondering: What does it look like? What does the hello world porgram look like. What is the first "hello world" thing for ASM?
    1) You generally do NOT need any kind of assembly knowledge to work in C++.

    2) What KIND of Assembly language do you want to know about? Each processor tends to have at LEAST one assembly language associated with it, and often many. E.g. I've had to use 8 different assembly languages (not counting minor variants) for 4 different families of microprocessors over the past 5 years; there is not just one "assembly language" that works on all machines. Assembly languages are very processor-specific, and there may even be multiple languages (usually developed by different vendors) for the same processor.

  4. #4
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    I think that he meant you need to know C++ to program much in ASM.

    Anyway, there's another thread about this here, and same deal goes for you as Ben_Robotics as far as those books I have go.
    Away.

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    85

    hello.asm

    title Hello World Program

    ;this program displays "Hello World!"

    .model small
    .stack 100h
    .data
    message db "Hello World!", 0dh, 0ah, '$'

    .code
    main proc
    mov ax, @data
    mov ds, ax

    mov ah, 9
    mov dx, offset message
    int 21h

    mov ax, 4C00h
    int 21h
    main endp
    end main
    Medical Robotics: "Pursuing perfection in healthcare through innovations in robotics and information technologies for medicine and surgery."

  6. #6
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    all you could want to know and more
    http://webster.cs.ucr.edu/
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  7. #7
    Registered User
    Join Date
    Jun 2003
    Posts
    85
    Yes, As Nor suggested this link is a very good starting point for those learning assembly. You can also find the hello world program written in High Level Assembly in the book presented on the site:

    program HelloWorld;
    #include ("stdlib.hhf")
    begin HelloWorld;

    stdout.put("Hello World", nl);

    end HelloWold;


    cheers,
    Ben
    Medical Robotics: "Pursuing perfection in healthcare through innovations in robotics and information technologies for medicine and surgery."

  8. #8
    btq
    btq is offline
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    or if one want something lighter but still quite enough to get
    started I suggest MadWizards tutorial . (<---- this l wont move! )

    cheers
    /btq
    ...viewlexx - julie lexx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  2. Questions on ASM with C++ and Operating Systems and such
    By Blizzarddog in forum Linux Programming
    Replies: 5
    Last Post: 07-25-2004, 12:44 PM
  3. Understanding ASM
    By kuphryn in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 07-12-2002, 07:39 PM
  4. asm mov
    By manu in forum C++ Programming
    Replies: 1
    Last Post: 12-15-2001, 11:59 AM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 05:05 PM

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