mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 20:20:16 +02:00
* Correction of omissions in GetLocalTime
git-svn-id: trunk@47529 -
This commit is contained in:
parent
ba84c70356
commit
10911173df
@ -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']};
|
||||||
|
@ -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 ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 ;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user