Results 1 to 4 of 4

Thread: which assembler to use?...

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    which assembler to use?...

    there are so many and so far, I can't find one that could compile these codes:

    Code:
    .model small
    .stack
    .data
    message   db "Hello world, I'm learning Assembly !!!", "$"
    
    .code
    
    main   proc
       mov   ax,seg message
       mov   ds,ax
    
       mov   ah,09
       lea   dx,message
       int   21h
    
       mov   ax,4c00h
       int   21h
    main   endp
    end main
    i tried it with masm32 and it won't compile. Any suggestion for assemblers that would compile this code, or how to make this compile in masm32. I would be fine with 16-bit types. I just wanna learn the basics.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: which assembler to use?...

    What error message(s) are you getting?

  3. #3
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: which assembler to use?...

    That's because the tutorial you're using uses 8086 encoding:

    Quote Originally Posted by ASm Tutorial
    Please note, that I explain 8086 assembly coding. That means NO 32-bit registers and instructions and NO protected-, real- and virtual 86 mode for now.
    He uses TASM 3.2 throughout the tutorial:
    http://www.ticalc.org/pub/win/asm/

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    Re: which assembler to use?...

    I used tasm32 with the code above, and still no success. I'm guessing it may be my command line:

    tasm32 hello.asm

    it gives me 24 errors. Could someone give me the exact command lines to make this code run and actually output "hello world".

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