The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: coolerfantasy on March 20, 2008, 06:58:53 AM

Title: masm 5.0 help wanted
Post by: coolerfantasy on March 20, 2008, 06:58:53 AM
hi
iuse masm 5.0 is there a macro that process numbers and print it to the screen
it should print them in any format i want , for examble it can prints floating point , integers ,...
thank you
Title: Re: masm 5.0 help wanted
Post by: coolerfantasy on March 20, 2008, 09:02:41 AM
help me guys :'(
Title: Re: masm 5.0 help wanted
Post by: Tedd on March 20, 2008, 10:58:31 AM
Wow, you waited 2 whole hours... nothing like being patient ::)

You want a "printf"-like function (or even a 16-bit printf function!) A macro can't really do this itself, at best it could call the 'right' function to print the number in the given format - you still need the code for those functions.

P.S. Posting in all bold doesn't actually add emphasis to what you're saying :P
Title: Re: masm 5.0 help wanted
Post by: coolerfantasy on March 21, 2008, 03:09:16 AM
tedd
       i need a macro for masm 5.0 which has the abilities of " print " of BASIC .
Title: Re: masm 5.0 help wanted
Post by: MichaelW on March 21, 2008, 04:26:56 AM
The major problem here is the MASM 5.0. Very few people are actively using it and it lacks many of the macro capabilities that were added starting with version 6.0. Except for the floating-point support a print macro for version 6.xx would be no problem.

And if you need the ability to print floating-point values, perhaps you should forget the macro idea and try linking with a 16-bit C library and using the printf function.
Title: Re: masm 5.0 help wanted
Post by: coolerfantasy on March 21, 2008, 10:32:11 AM
MichaelW  Thank you so much
my work should doned by " MASM 5.0 Or older " , No C No high level languages
but if it possible with masm 6 its ok
can you help me with that
Title: Re: masm 5.0 help wanted
Post by: MichaelW on March 21, 2008, 01:40:57 PM
In memmap.zip, available  here (http://www.masm32.com/board/index.php?topic=7679.msg56497#msg56497), the file support.asm contains a collection of MASM 6+ macros, equates, and data and procedure definitions aimed at supporting real-mode DOS programs, including a print macro. While the print macro could probably be adapted to work with MASM 5.0, most of the other macros could not because they are macro functions, and macro functions were not added until MASM 6.0.
Title: Re: masm 5.0 help wanted
Post by: coolerfantasy on March 22, 2008, 04:04:22 AM
MichaelW thank you
i will try it , but i havnt MASM 6.0 and its linker
i will seek it in the internet
Title: Re: masm 5.0 help wanted
Post by: coolerfantasy on March 22, 2008, 06:23:45 AM
i couldnt find masm 6.0 in the internet
can any one give me direct link to masm 6.0
thank you .

Title: Re: masm 5.0 help wanted
Post by: sinsi on March 22, 2008, 06:50:32 AM
masm 6 doesn't exist - it's ml 6
and guess what - ml 6 is in the masm32 package available from...this website.

even masm 21.2 doesn't support a print macro.
Title: Re: masm 5.0 help wanted
Post by: MichaelW on March 22, 2008, 07:54:20 AM
The EXE is ML, but it's referred to as MASM 6.0 in the Microsoft documentation.
Title: Re: masm 5.0 help wanted
Post by: coolerfantasy on March 22, 2008, 11:25:09 AM
thank you friends
that was very kind of you
you were helpful
:bg
Title: Re: masm 5.0 help wanted
Post by: BytePtr on March 25, 2008, 03:38:26 AM
Quote from: coolerfantasy on March 22, 2008, 06:23:45 AM
i couldnt find masm 6.0 in the internet
can any one give me direct link to masm 6.0
thank you .


Why are you using bold? Do you think that no-one can see your posts? And i suggest you to learn some google hacks to find
some "sweet" stuff.

http://www.google.ee/search?hl=et&q=%3Fintitle%3Aindex.of%3F+masm611.zip&btnG=Otsi&lr=
Title: Re: masm 5.0 help wanted
Post by: coolerfantasy on March 25, 2008, 09:16:47 PM
you should advice your self to learn how to respect the peoples freedom
and if i made some thing wrong there is an ADMINISTRATORS whom can correct
any mistakes .
Title: Re: masm 5.0 help wanted
Post by: ecube on March 26, 2008, 01:37:18 AM
Quote from: BytePtr on March 25, 2008, 03:38:26 AM
Quote from: coolerfantasy on March 22, 2008, 06:23:45 AM
i couldnt find masm 6.0 in the internet
can any one give me direct link to masm 6.0
thank you .


Why are you using bold?

lol at that and the follow up post  :bg