From cornel@40th.com Fri Dec  5 16:03:04 1997
Path: excalibur.flash.net!cornel
From: cornel@40th.com (Cornel Huth)
Newsgroups: comp.os.os2.programmer.tools
Subject: Re: DOS MASM under OS/2?
Date: 5 Dec 1997 21:53:38 GMT
Organization: [*]
Lines: 50
Message-ID: <669t52$sts$1@excalibur.flash.net>
References: <01bd01bf$66927ee0$144eb388@snydersw.norand.com>
NNTP-Posting-Host: sasc5-223.flash.net
X-Server_Completeness_Status: 97
Xref: excalibur.flash.net comp.os.os2.programmer.tools:13389


Steve Snyder? (snydersw@norand.com?) wrote (5 Dec 1997 20:50:03 GMT):
>Do any 6.x versions of Microsoft MASM work in a OS/2 DOS box?
>I know that the last few version (e.g. v6.11d) cause protection
>faults, but how about earlier versions?

6.0x are native os/2 apps.  6.11d works here okay (always has, for years).
You need DOSXNT.EXE from VC 1.5x (not the one that comes with 6.11x).  This
is the DOSXNT.EXE you need:

 Directory of D:\dev\comp\dos\ms\M61\BIN

  6-16-93   3:05p    393942           0  DOSXNT.EXE

It should be on hobbes, somewhere, under... or I can send it to you.
6.11 is about 100 times faster than 6.0 is, plus 6.0b can't even do
a jc @B (it can do jc @F).  I still use 6.0b since the DDK seems to
work okay with it, but I wouldn't use it to write anything myself.

You also need to set:

   INT_DURING_I/O to off        (at least I still do)
   DPMI_DOS_API to enabled      (a must)

in the DOS Properties/Settings.  Then just fire away (set up
a autoexec.bat for the DOS box if needed):

 Microsoft (R) Macro Assembler Version 6.11d
 Copyright (C) Microsoft Corp 1981-1995.  All rights reserved.
        ml /c /Cp /W2 /WX  /FoO\PSWAVE.obj PSWAVE.ASM
 Assembling: PSWAVE.ASM

I use nmake 1.20 to automate just about everything that has to be
done in a DOS box (just the assembles), and then .cmds for the rest.

6.12 is a win32 console app.  Too bad, at least for now.  Maybe
the win32-os2 guy can get that thing to run in OS/2.

Then there's always ALP.  You can get that at

 http://service.boulder.ibm.com/ddk/

ALP is mostly MASM 5.1-compatible in constructs, but it does MMX
and .586+, I believe.  4.00.xxx is the current version, or around
there.

 Cornel Huth          MIDI DB - The Ultimate MIDI player
 info@40th.com          XG DSP - DSP control of SW60XG, MU10, AT3DXG
 http://40th.com/         Mixers - all SBs, WSS, CS423x, OPL3SAx, AT3DXG
                            Bullet - database engine: OS/2, Win32, DOS32/16


