Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / is it true .com files are only renamed .bin files

Author
Message
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 6th Jun 2005 05:15
is it true that a .com file has no header or anything to worry about and is nothing more than pure machine code if u use no header files in the compile

im asking this cause im just building a little testing os(no im nto aiming big it is just a little bit of fun programming when u can do it in C)and im currently using a bootsector by someone else but im not sure if that bootsector loads/strips the .com file so it acts like a .bin file

formerly shadows of emptiness
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 6th Jun 2005 05:27
Yes.. and No.
Nice to have a precise answer. heh

.COM are like System in-specific .EXE OS-DEVer.net has more information on them if you'd like to know.

Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 6th Jun 2005 05:37 Edited at: 6th Jun 2005 05:38
well no i mean for an os
would it be the same as a .bin file
does it have any headers or anything in it
that website could not be found

formerly shadows of emptiness
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 6th Jun 2005 06:15
Yes, *.com files have no header.
A com program may not exceed 64k in size (one segment), though.


Play Nice! Play Basic! Version 1.073
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 6th Jun 2005 06:25 Edited at: 6th Jun 2005 07:54
hmm guess i will be using some jmps and reads then
thank u finally i get an answer

edit:
isnt that only a dos limitation cause it operates in live mode limiting the memory to 64k

formerly shadows of emptiness
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Jun 2005 21:46
Yes, it *was* a DOS limitation, but windows has inherited that. .com files are assumed to be 16 bit. With .exe files, they have a header that tells the OS what mode they run in.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 7th Jun 2005 00:16
oh because of that dos emulator thing u mean
and that stupid dos emulator does not support mode 13 something newer and older video cards support

i know it is the emulations fault because if i boot my little os from a floppy it works fine but if i run the .com file which should behave the same i get rubish on my montir and have to alt enter to get it out of fullscreen

formerly shadows of emptiness

Login to post a reply

Server time is: 2024-11-27 15:32:51
Your offset time is: 2024-11-27 15:32:51