Thread: Ms-dos

  1. #1
    Registered User Obscenity's Avatar
    Join Date
    Aug 2012
    Location
    Tasmania
    Posts
    6

    Exclamation Ms-dos

    MS-DOS related thread

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    ... and?

  3. #3
    Registered User Obscenity's Avatar
    Join Date
    Aug 2012
    Location
    Tasmania
    Posts
    6
    I want to know how I can obtain a makefile for .COM extention if i have to do that because i want to make an MS-DOS Application. Help?

  4. #4
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    You can't.

    You can tell the linker to output a flat binary though.

    EDIT: MinGW's tools aren't good for that, mind.
    Devoted my life to programming...

  5. #5
    Registered User Obscenity's Avatar
    Join Date
    Aug 2012
    Location
    Tasmania
    Posts
    6
    Quote Originally Posted by GReaper View Post
    You can't.

    You can tell the linker to output a flat binary though.

    EDIT: MinGW's tools aren't good for that, mind.
    Whats the command?

  6. #6
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    What compiler are you using?

    What operating system will this program be using, and the exact version?

    Jim

  7. #7
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    16 bit .exe files ARE MS-DOS applications, without being converted to a .com file. The .com file was just an alternative executable format.

    Assuming you have a 16 bit .EXE file that can run under MS-DOS, then 16-bit development environments (compiler and linker in combination) would output such an executable by default. MS-DOS provides a utility called exe2bin. The command line "exe2bin filename.exe filename.com" would take filename.exe and convert it to an equivalent filename.com.

    Not all executable files can be converted. The input executable had to be a 16-bit executable (32-bit executables, such as those generated by 32-bit development environments cannot be converted). One side effect of that is that the resident code (aka code AND data) could not total to more than 64K. IIRC, there were also other constraints, such as no overlays in the executable, no use of high or extended memory, and a few other constraints.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  8. #8
    Registered User
    Join Date
    Sep 2012
    Location
    Birmingham, UK
    Posts
    3
    I'm writing something for a command line console - would this count as DOS programming as I have a quick question and I'm not sure if it'll directly relate to MS-DOS.

    Edit: I've just tested it with DOS-Box and it won't run, so I guess it's not a true MS-DOS problem, sorry guys.

    Ta!

    S.
    Last edited by S_Bebbers; 09-04-2012 at 02:18 PM.

  9. #9
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Quote Originally Posted by S_Bebbers View Post
    Edit: I've just tested it with DOS-Box and it won't run, so I guess it's not a true MS-DOS problem, sorry guys.
    Actually it run something, didn't it? "This application cannot be run in DOS mode" : This is an entire DOS program inserted in ALL Windows executables.
    Devoted my life to programming...

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by S_Bebbers View Post
    I'm writing something for a command line console - would this count as DOS programming as I have a quick question and I'm not sure if it'll directly relate to MS-DOS.
    No, it would not.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Tags for this Thread