The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: filxy on October 23, 2012, 05:29:00 AM

Title: MASM output is not displayed
Post by: filxy on October 23, 2012, 05:29:00 AM
I wrote a file in cmd as .asm and it is linking but when i write the file name in c:/masm> first.asm like this it displays the the whole code in visual studio and it does not print a output i am using windows 7 32 bit
Title: Re: MASM output is not displayed
Post by: dedndave on October 23, 2012, 05:39:45 AM
welcome to the forum   :t

ummm - could we see the code ?   :biggrin:

you would probably get more out of writing 32-bit code
Title: Re: MASM output is not displayed
Post by: Gunther on October 23, 2012, 06:55:47 AM
Hi filxy,

welcome to the forum.

As Dave wrote: please post your code and we'll see what happens.

Gunther
Title: Re: MASM output is not displayed
Post by: nidud on October 23, 2012, 08:00:08 AM
deleted
Title: Re: MASM output is not displayed
Post by: dedndave on October 23, 2012, 01:54:01 PM
ASM files may or may not be associated with VC
but, EXE files aren't likely to be   :P
Title: Re: MASM output is not displayed
Post by: nidud on October 23, 2012, 05:34:48 PM
deleted
Title: Re: MASM output is not displayed
Post by: MichaelTripi68 on January 02, 2013, 01:07:29 PM
I am a newbie but I didn't know you can run .ASM code files directly in CMD as the file is just source code.  My understanding is that you need to assemble your code with an assembler such as MASM, MASM32, TASM, NASM, or FASM.  Once your code file is assembled you can run it by typing just the base name (i.e. no extension).  Based on your memory model it may be a .COM (tiny model only) or a .EXE (all other models).

As far as it loading in VC is most likely due to the extension (.asm) being associated with that application.  Of course, when it loads in VC it will just display the file because it is just a source code file.  Source code files are not directly executable.  They must be transformed in an executable format.

Any of you code gurus out there correct me if I'm wrong with what I said here...