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)
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)
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.
Weird code. What is in edx?
figured it out...
invoke GlobalMemoryStatus, addr memstat
Mov eax,
shr eax, 20
inc eax
invoke wsprintf,addr Ram,addr RamFmt,eax
invoke GlobalMemoryStatus, addr memstat
Mov eax,
shr eax, 20
inc eax
invoke wsprintf,addr Ram,addr RamFmt,eax
working on a little app for IT techs... can anyone suggest other stuff i should add to this?


You could put alot about hardware.....