The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: sam on October 04, 2010, 07:01:41 AM

Title: Problem with displaying on DOS prompt
Post by: sam on October 04, 2010, 07:01:41 AM
Dear All,

I'm facing a problem while displaying values on DOS prompt. I tried all sample programs made available with MASM. It assembles, links and executes fine but  doesn't display any message. I would also request for few sumple 80386 programs. Please help.

Regards,
SAM.
Title: Re: Problem with displaying on DOS prompt
Post by: jj2007 on October 04, 2010, 07:39:07 AM
Check my tips & tricks (http://www.webalice.it/jj2006/Masm32_Tips_Tricks_and_Traps.htm), "Console app trap". Reasons might be that you don't have an inkey at the end, or that you use subsystem Windows instead of subsystem console.
Title: Re: Problem with displaying on DOS prompt
Post by: Magnum on October 04, 2010, 12:30:08 PM
Quote from: sam on October 04, 2010, 07:01:41 AM
Dear All,

I'm facing a problem while displaying values on DOS prompt. I tried all sample programs made available with MASM. It assembles, links and executes fine but  doesn't display any message. I would also request for few sumple 80386 programs. Please help.

Regards,
SAM.

Are you looking for 16-bit code examples?

Andy
Title: Re: Problem with displaying on DOS prompt
Post by: Antariy on October 04, 2010, 10:42:25 PM
Quote from: sam on October 04, 2010, 07:01:41 AM
Dear All,

I'm facing a problem while displaying values on DOS prompt. I tried all sample programs made available with MASM. It assembles, links and executes fine but  doesn't display any message. I would also request for few sumple 80386 programs. Please help.

Regards,
SAM.

Do you used console subsystem? I.e., when linking, need to use /SUBSYSTEM:CONSOLE in command line of LINK.EXE. Or in QEDITor - "Project->Console Assemble and Link".

This is if you wants to test console apps, but nothing is shown.

Edited: I see what this is sayed by Jochen already, but anyway.



Alex