git-svn-id: trunk@47529 -
@@ -1097,30 +1097,33 @@ asm
mov ah, 2Ah
call syscall
{$IFDEF REGCALL}
- pop eax
+ pop edi
{$ELSE REGCALL}
mov edi, SystemTime
{$ENDIF REGCALL}
- mov ax, cx
- stosw
- xor eax, eax
- mov al, 10
- mul dl
+ xchg ax, cx
shl eax, 16
mov al, dh
stosd
+ mov al, dl
+ shl eax, 16
+ mov al, cl
+ stosd
push edi
mov ah, 2Ch
pop edi
xor eax, eax
- mov al, cl
- shl eax, 16
mov al, ch
- mov al, dl
+ xor eax, eax
+ mov al, 10
+ mul dl
+ rol eax, 16
end {['eax', 'ecx', 'edx', 'edi']};
@@ -659,6 +659,7 @@ begin
SystemTime.Year := Regs.Cx;
SystemTime.Month := Regs.Dh;
SystemTime.Day := Regs.Dl;
+ SystemTime.DayOfWeek := Regs.Al;
end ;
@@ -644,6 +644,7 @@ begin
@@ -650,6 +650,7 @@ begin