|
-
Jan 17th, 2001, 11:48 PM
#1
Thread Starter
Hyperactive Member
Ok I read some place that dos uses .exe's and i dont want to have to use dos, so i need a .com file...well if i am doing asm or maybe even c++ is their a way to output a .com file that i could boot to?
-
Jan 18th, 2001, 12:56 AM
#2
Addicted Member
Umm...ermmm
You can make .com files from the debug command in your DOS ...I know you dont want to use DOS..but this is the only way i know how to make a .com file
If you want to make a .com file in DOS.. i can email you a .txt file that explains it..since i have too explain the process in detail...
-
Jan 18th, 2001, 01:01 AM
#3
Thread Starter
Hyperactive Member
e-mail me
Yeah e-mail me, umm [email protected]
-
Jan 18th, 2001, 01:53 AM
#4
All .exe is for is so that the o/s knows what to do with it. It could .any, as long as the o/s handled it the same way it does an exe, itll run fine. What do you mean by you dont want to use dos, so youll need a .com. Dos uses .com's too.
-
Feb 27th, 2001, 11:48 PM
#5
well that was partially correct. .com files have a fundamental difference between themselves and .exe files. They are smaller and are limited to one codepage. General info: They are loaded into memory at offset 0100. Command line parameters are in the 0080s above them. One area for capitalized, one for lowercase. .exe files load in a different memory address, can be any size (up to 512k without a memory manager).They also contain a dos 2.0 compatibility header info. This header is included in every .exe and .dll and .ocx made nowadays. Windows programs have a special entry point. There is a small dos stub at the beginning of each that basically says "program can't run out of windows" or something similar. There are a few different ways to exit a dos program. Interrupt 29, interrupt 20, and interrupt 21 with 4c loaded into ah. al will be loaded with an error return value (useful for batch files). I hope this helps explain what an .exe is and what a .com file is.
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
|