Results 1 to 2 of 2

Thread: But what i would like to know is...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Cool

    What do the files .inc .k do?
    and what is a dos extender?

    plus i need to take back what i said in the beginning.. can someone eplain the process in making a .exe in ASM

    i mean from the .txt file to the .exe file

    Thanks.

  2. #2
    Junior Member
    Join Date
    Apr 2000
    Posts
    24

    Well....

    Well, to make a long story short, the program reads your .txt (or any source), parses the expressions (BISON/FLEX/YACC), and writes the appropriate machine code:

    For example (INTEL FORMAT):
    --test.s--
    SEGMENT .data
    MSG DB 'Hello World', '$'

    SEGMENT .text
    MOV AH, 09h
    MOV DX, MSG+256
    INT 21h

    MOV AX, 4C00h
    INT 21h
    ----------

    nasm test.s -o test.com

    EXAMPLE:
    MOV AX, 4C00h ---> B8 00 4C
    --Intel--
    MOV AX, 0x4C00
    INT 0x21
    ---------

    --GAs--
    MOV 0x4C00, %AX
    INT 0x21
    -------

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