Get_Date returns correct year now.

This commit is contained in:
jbo_85
2005-10-16 12:40:20 +00:00
parent 5d9d437117
commit fc35032a9d
2 changed files with 16 additions and 2 deletions

View File

@@ -339,7 +339,14 @@ NEWSYM Get_Date
and al,0xF ;Remove first BCD digit and al,0xF ;Remove first BCD digit
add dl,al ;Add second digit to first*10 add dl,al ;Add second digit to first*10
mov dh,ah ;Copy month mov dh,ah ;Copy month
;Year still isn't done yet, although I don't think we use it anywhere -Nach ;Year Calculation
shr eax,16
movzx ecx,al
shr ecx,4
imul ecx,10
and al,0xF
add cl,al
add cx,1900
ret ret
NEWSYM Get_File_Date NEWSYM Get_File_Date

View File

@@ -380,7 +380,14 @@ NEWSYM Get_Date
and al,0xF ;Remove first BCD digit and al,0xF ;Remove first BCD digit
add dl,al ;Add second digit to first*10 add dl,al ;Add second digit to first*10
mov dh,ah ;Copy month mov dh,ah ;Copy month
;Year still isn't done yet, although I don't think we use it anywhere -Nach ;Year Calculation
shr eax,16
movzx ecx,al
shr ecx,4
imul ecx,10
and al,0xF
add cl,al
add cx,1900
ret ret
NEWSYM Get_File_Date NEWSYM Get_File_Date