%include "lmacros3.mac" numdef FILEDATE, __DATE_NUM__ numdef FILETIME, __TIME_NUM__ %warning >>_FILEDATE<< >>_FILETIME<< %push %assign %$year _FILEDATE / 1_00_00 %assign %$month _FILEDATE / 1_00 % 100 %assign %$day _FILEDATE % 100 %if %$year < 1980 %assign _FATFILEDATE 0 << 9 | 1 << 5 | 1 %elif (%$year - 1980) >= 128 %assign _FATFILEDATE 127 << 9 | 12 << 5 | 31 %else %assign _FATFILEDATE (%$year - 1980) << 9 | %$month << 5 | %$day %endif %assign %$hour _FILETIME / 1_00_00 %assign %$minute _FILETIME / 1_00 % 100 %assign %$second _FILETIME % 100 %assign _FATFILETIME %$hour << 11 | %$minute << 5 | %$second >> 1 %pop _autohexitsstrdef DEFD, _FATFILEDATE, 4 _autohexitsstrdef DEFT, _FATFILETIME, 4 %warning >>_DEFD<< >>_DEFT<<