The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: omdown on April 30, 2005, 03:17:14 AM

Title: Error Running in 16-bit mode, PLEASE help.
Post by: omdown on April 30, 2005, 03:17:14 AM
I know that this is about 16-programming, but it's not about the actual programming itself so I think it should be okay to post here . . . and I'm just learning so I think the campus is the best place for it . . .

I'm having a bit of trouble here, I'm doing a bit of programming in 16-bit mode, and when I click Build 16-bit MASM it runs fine, but when I hit Run MASM, it gives me this error messge:


Quote
C:\WINDOWS\System32\cmd.exe
C:\WINDOWS\System32\Autoexec.nt

The system file is not suitable for running DOS and Microsoft Windows Applications.  Choose "close" to terminate the application.
The window has "Close" and "Ignore" buttons, but they both do the same thing.  The program doesn't run, just says "Press any key to continue  .  .  .", and of course on pressing a key it closes.

Does anyone know what I can do to fix this?
Title: Re: Error Running in 16-bit mode, PLEASE help.
Post by: Mark Jones on April 30, 2005, 05:56:10 AM
See the sticky above entitled, "Before posting if your code contains INT 21h..."
Title: Re: Error Running in 16-bit mode, PLEASE help.
Post by: AeroASM on April 30, 2005, 06:34:54 AM
This is a problem with XP SP2 I think, there is an article on the Microsoft Knowlege Base about it somewhere.
Title: Re: Error Running in 16-bit mode, PLEASE help.
Post by: omdown on April 30, 2005, 08:04:32 AM
Thanks, I'll look into it, if anyone knows anything more specific I would love to hear that too . . .
Title: Re: Error Running in 16-bit mode, PLEASE help.
Post by: AeroASM on April 30, 2005, 10:33:43 AM
Basically SP2 overwrites the autoexec.nt with a faulty version, so I restored it from my repair folder.
Title: Re: Error Running in 16-bit mode, PLEASE help.
Post by: pbrennick on April 30, 2005, 03:20:09 PM
As AeroASM states you can read about this problem at http://support.microsoft.com/default.aspx?scid=kb;en-us;324767.  Note one thing, when you replace any of the three (3) files that can cause this problem, be sure to enable the read only attribute on either config.nt or autoexec.nt (if either one has been replaced) or else the file will be removed by windows when you restart.  If this is not done correctly, the problem will persist.

Paul
Title: Re: Error Running in 16-bit mode, PLEASE help.
Post by: omdown on May 01, 2005, 02:27:31 AM
Thanks guys, you rock.  I owe you all one.   :U