watcom adds dos functions to com excecutables.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
scsi
Posts: 14
Joined: Fri Nov 26, 2010 3:22 am

watcom adds dos functions to com excecutables.

Post by scsi »

I'm developping a 16 bit kernel and using watcom c/c++ compiler.But when i try to build .com executable and look the source of com file with ndisasm i see some int 21h interrupts which is used by dos.Anybody knows how to remove this dos functions. I just want to have simple flat binary code.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: watcom adds dos functions to com excecutables.

Post by jal »

scsi wrote:I'm developping a 16 bit kernel and using watcom c/c++ compiler.But when i try to build .com executable and look the source of com file with ndisasm i see some int 21h interrupts which is used by dos.Anybody knows how to remove this dos functions. I just want to have simple flat binary code.
If you create a DOS executable (which is what a COM file is), you get DOS functions. Also, you see that link up top, called "The OSDev.org Wiki - Got a question? Search this first!"? You didn't search, did you? Because there this article called Watcom that answers all of your questions about using Watcom C for OS development.


JAL
scsi
Posts: 14
Joined: Fri Nov 26, 2010 3:22 am

Re: watcom adds dos functions to com excecutables.

Post by scsi »

thanks for the reply.
Post Reply