Results 1 to 9 of 9

Thread: new to assembly

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    new to assembly

    as ur FAQ says i downloaded the a86 asm compiler or whatever u call it...then created in the ame dir a file called hello.asm... i wrote the following code

    Code:
    	jmp	start
    Message1	db "Hello World!$"
    
    start:
    	mov	ah, 09h
    	mov	dx, offset Message1
    	int	21h
    
    	mov	ax, 4c00h
    	int	21h
    then saved it...but i write in the command prompt a86 hello.asm and it didnt work...how do i do that? i also noticed theres no file a86.exe .com .something..lol..im pretty new to this..what should i do lol?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Get NASM. Unlike a86 it's completly free and has not yet failed me.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Hyperactive Member
    Join Date
    Jul 2002
    Posts
    296
    Please link us....
    Kevin Carpenter
    Currently Working in the CAOS (CA Operating System) Group

  4. #4
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    use Masm 6.11

    download Masm 6.11

  5. #5

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmm tks

  6. #6
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Why is there a jmp statement at the beginning of the code?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Because otherwise the CPU would try executing the string. This is a COM file, it doesn't have a set entry point but simply starts execution at the start of the file.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8
    Addicted Member CodeRonin's Avatar
    Join Date
    Jul 2002
    Location
    Vienna, Austria
    Posts
    233

    USE TASM!

    In my opinion, TASM is the must comfortable assembler out there.
    Code Ronin

  9. #9
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    I have to agree with CornedBee. NASM is the best. Its (1) solid, (2) syntax is descripitve, and (3) its free.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width