|
-
Dec 14th, 2000, 03:14 AM
#1
Thread Starter
Addicted Member
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.
-
Dec 24th, 2000, 11:39 AM
#2
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|