invoke GlobalMemoryStatus, addr memstat
Mov eax,
shr eax, 10
shr eax, 10
cmp edx,512
JB @done
inc eax
@done:
invoke wsprintf,addr Ram,addr RamFmt,eax

how can i make the function correctly identify my ram (it shows 255 instead of 256)
Posted on 2003-12-16 21:10:38 by illwill
So first 1Meg is zero and 255 is the 256th. Why don't you just increment the register before placing it to your display variable.
Posted on 2003-12-16 21:25:32 by mrgone
Weird code. What is in edx?
Posted on 2003-12-16 21:56:47 by roticv
figured it out...

invoke GlobalMemoryStatus, addr memstat
Mov eax,
shr eax, 20
inc eax
invoke wsprintf,addr Ram,addr RamFmt,eax
Posted on 2003-12-16 22:32:49 by illwill
working on a little app for IT techs... can anyone suggest other stuff i should add to this?

Posted on 2003-12-16 22:42:58 by illwill
You could put alot about hardware.....
Posted on 2003-12-16 23:05:26 by mrgone