Hey guys I want to make my value into a double not a 4byte. Like say


mov eax,
cmp blahblah,0
jnz blah



My assembler only reads blahblah as a 4 byte not a double...can anyone help me with that?
Posted on 2007-05-12 21:28:22 by void
It is obvious that these instructions read a 32-bit value into eax, because that's exactly what they're supposed to do. It doesn't matter what assembler you use. What is a "double"? Do you mean a double-precision floating-point value? To convert an integer to FP, use the following code:
fild 
fstp qword ptr
Posted on 2007-05-12 22:31:58 by ti_mo_n
I meant double as in 8 byte.
Posted on 2007-05-13 07:37:19 by void
	mov eax,
or eax,
jnz blah
Posted on 2007-05-13 09:06:20 by drizz

I meant double as in 8 byte.

DWORD (double word) is 4 bytes.

VB and VC doubles are 8 bytes, but they are floating-point, not integers. See ti_mo_n's post.

If you want 8-byte (64-bit) integers, you will need to use multiprecision techniques, simulating 64-bits by handling them in chunks of 32-bits. (Or upgrade to x64 systems.)
Posted on 2007-05-13 19:27:59 by tenkey