News:

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

Meminfo

Started by ToutEnMasm, November 01, 2011, 06:54:21 AM

Previous topic - Next topic

ToutEnMasm


I know that i could play a little with bill.
If it is only a question of size,this one is only 2.5k
It's just for play.
:bg

Bill Cravener

Tout, now that's more like it. :bg

So how did you make your mem example so small??
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

dedndave

works well, Yves    :U

that shows you one big advantage for writing in asm as opposed to writing in C
a lot of C programmers are surprised by how small a program can be   :P

ToutEnMasm


Thanks for encouragements.
source code is here.
http://www.masm32.com/board/index.php?topic=17664.msg148822#msg148822
How did i made it so smalll ?
_ first a good size for the buffer , only 100 bytes free with a normal computer (could be decrease)
_ second the use of my code to format the string
_ last,the help of polink to finish the work.

Antariy

Quote from: clive on November 01, 2011, 05:09:21 PM
Although you really need something that dynamically scales, because the simple DIV 1024 breaks down on numbers bigger than 2^42 (say about 4TB), but more importantly it's hard to decipher the decimal places at a glance.

MemInfoMicro has units which are dynamically changing, depend on value of number :bg