* Correction of omissions in GetLocalTime

git-svn-id: trunk@47529 -
This commit is contained in:
Tomas Hajny 2020-11-22 16:19:34 +00:00
parent ba84c70356
commit 10911173df
4 changed files with 15 additions and 9 deletions

View File

@ -1097,30 +1097,33 @@ asm
mov ah, 2Ah mov ah, 2Ah
call syscall call syscall
{$IFDEF REGCALL} {$IFDEF REGCALL}
pop eax pop edi
{$ELSE REGCALL} {$ELSE REGCALL}
mov edi, SystemTime mov edi, SystemTime
{$ENDIF REGCALL} {$ENDIF REGCALL}
mov ax, cx xchg ax, cx
stosw
xor eax, eax
mov al, 10
mul dl
shl eax, 16 shl eax, 16
mov al, dh mov al, dh
stosd stosd
mov al, dl
shl eax, 16
mov al, cl
stosd
push edi push edi
mov ah, 2Ch mov ah, 2Ch
call syscall call syscall
pop edi pop edi
xor eax, eax xor eax, eax
mov al, cl
shl eax, 16
mov al, ch mov al, ch
shl eax, 16
mov al, cl
stosd stosd
mov al, dl xor eax, eax
mov al, 10
mul dl
shl eax, 16 shl eax, 16
mov al, dh mov al, dh
rol eax, 16
stosd stosd
pop edi pop edi
end {['eax', 'ecx', 'edx', 'edi']}; end {['eax', 'ecx', 'edx', 'edi']};

View File

@ -659,6 +659,7 @@ begin
SystemTime.Year := Regs.Cx; SystemTime.Year := Regs.Cx;
SystemTime.Month := Regs.Dh; SystemTime.Month := Regs.Dh;
SystemTime.Day := Regs.Dl; SystemTime.Day := Regs.Dl;
SystemTime.DayOfWeek := Regs.Al;
end ; end ;

View File

@ -644,6 +644,7 @@ begin
SystemTime.Year := Regs.Cx; SystemTime.Year := Regs.Cx;
SystemTime.Month := Regs.Dh; SystemTime.Month := Regs.Dh;
SystemTime.Day := Regs.Dl; SystemTime.Day := Regs.Dl;
SystemTime.DayOfWeek := Regs.Al;
end ; end ;

View File

@ -650,6 +650,7 @@ begin
SystemTime.Year := Regs.Cx; SystemTime.Year := Regs.Cx;
SystemTime.Month := Regs.Dh; SystemTime.Month := Regs.Dh;
SystemTime.Day := Regs.Dl; SystemTime.Day := Regs.Dl;
SystemTime.DayOfWeek := Regs.Al;
end ; end ;