I need to find the find the current date in binary for Intel x86 Assembly on Windows. I'm allowed to use Windows procedures.
If you're allowed to use Win32 functions, then the answer to this would be the same as the answer to "How can I find the current date in C on Windows?" For this, look up the GetSystemTime and SystemTimeToFileTime functions (hey neat, there's even a GetSystemTimeAsFileTime function now! (since Windows 2000)).
Not sure if this is technically "Windows" (and indeed only works in Windows' emulated DOS environment aka NTVDM, as confirmed by Greg Hewgill), but you could use INT $21, with $2A in AH, as this DOS function will return the date. See this link for more info
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With