Hi all,
Me again, I am doing VERY good progress with my dynamic compiler and I've come to a point where I need to pass a DOUBLE type value to a void.
Now the disassembly of this code would look something like this:
How can the values 0x40250000 and 0 be calculated? I am trying to convert this 10.5 double to a (2)4-byte value. How can this be done?
Regards,
Kornalius
Me again, I am doing VERY good progress with my dynamic compiler and I've come to a point where I need to pass a DOUBLE type value to a void.
- Code:
void test (double d)
{
}
test(10.5)
Now the disassembly of this code would look something like this:
- Code:
24: test(10.50);
1A01124A 68 00 00 25 40 push 40250000h
1A01124F 6A 00 push 0
1A011251 E8 B4 FD FF FF call @ILT+5(test) (1a01100a)
1A011256 83 C4 08 add esp,8
How can the values 0x40250000 and 0 be calculated? I am trying to convert this 10.5 double to a (2)4-byte value. How can this be done?
Regards,
Kornalius