News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

masm 5.0 help wanted

Started by coolerfantasy, March 20, 2008, 06:58:53 AM

Previous topic - Next topic

coolerfantasy

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

coolerfantasy


Tedd

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
No snowflake in an avalanche feels responsible.

coolerfantasy

tedd
       i need a macro for masm 5.0 which has the abilities of " print " of BASIC .

MichaelW

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.
eschew obfuscation

coolerfantasy

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

MichaelW

In memmap.zip, available here, 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.
eschew obfuscation

coolerfantasy

MichaelW thank you
i will try it , but i havnt MASM 6.0 and its linker
i will seek it in the internet

coolerfantasy

i couldnt find masm 6.0 in the internet
can any one give me direct link to masm 6.0
thank you .


sinsi

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.
Light travels faster than sound, that's why some people seem bright until you hear them.

MichaelW

The EXE is ML, but it's referred to as MASM 6.0 in the Microsoft documentation.
eschew obfuscation

coolerfantasy

thank you friends
that was very kind of you
you were helpful
:bg

BytePtr

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=

coolerfantasy

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 .

ecube

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