Posted by ShADė on 1/22/2000, 7:10 pm
, in reply to "Re: Date task"
203.57.68.13
Hi snake how you doin? Here is a cut from my API ref referencing the FILETIME structure
The FILETIME structure is a 64-bit value representing the number of
100-nanosecond intervals since January 1, 1601.With 100 nanoseconds bieng a very short period the lower 32 bits of the 64 bit
number tend to change frequently. The program Acoustica only uses the upper 32
bits which represent the higher end of the count. This is why it uses ebp-08 to
store the result of the call but then uses ebp-04 to access the upper part of
the number.I just split the number into two 32 bit parts so that it could be seen
that the lower part changes everytime the button is pressed and it is possible to see
if you keep pressing the button how often the upper part changes.The div function just divides the value at eax (in this case the upper 32bits of
the returned date 01bf####) by the specified register (in this case ecx). The result of the
division overwrites the value in eax as it is stored there. Any remainder from
the division is stored in edx. The program doesn't use the remainder though.