News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MASM32 support for FreeDOS

Started by fygr, June 21, 2009, 05:53:34 PM

Previous topic - Next topic

fygr

Hi, this might sound stupid question, but I started to learning HLA a while ago and wanted my console applications to run in clean DOS environment, like what FreeDOS has to offer. But when I made my console application like basic text string in HLA, or only MASM32 and try to run it for FreeDOS it is just saying "this program can not be run in DOS". Is there a way to install MASM32 support for FreeDOS or anything?

dedndave

you may have assembled/linked it without the right options
for console mode applications, i use
"ml /c /coff filename.asm" to assemble
and
"Link /SUBSYSTEM:CONSOLE /OPT:NOREF filename.obj" to link

hutch--

fygr,

You would need to know if FreeDOS will run 32 bit applications and if so if the binary needs to be modified to do so. There are a number of 32 bit DOS extenders that support a subset of the win32 API functions but you would have to look this up and find out what needs to be done to run applications.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

MichaelW

Japheth's HX DOS Extender includes a Win32 API emulation layer that will allow it to run many Win32 console applications under DOS, a list of tested apps is here.
eschew obfuscation

fygr


WOW. Get it work with HX extender and my HLA applications as well are actually working in here... SUPER cool... Thanx. :dance:

Fight with this a while after I gave up first and now. Hmm Newer thought that it needs to install any extenders any more...