mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 17:40:28 +02:00
- rm the first call to int 10, ax=4f04, dl=0 from SaveStateVESA, since this function is
called again immediately after the inline asm block via RealIntr and the exact same operations are performed once again in Pascal (probably someone translated the inline asm block to pascal, but forgot to remove it). git-svn-id: trunk@25681 -
This commit is contained in:
parent
f1d9869435
commit
996ca5ae00
@ -2615,34 +2615,9 @@ Const
|
||||
LogLn('Prepare to save VESA video state');
|
||||
{$endif logging}
|
||||
{ Prepare to save video state...}
|
||||
asm
|
||||
mov ax, 4F04h { get buffer size to save state }
|
||||
mov dx, 00h
|
||||
mov cx, 00001111b { Save DAC / Data areas / Hardware states }
|
||||
{$ifdef fpc}
|
||||
push ebx
|
||||
push ebp
|
||||
push esi
|
||||
push edi
|
||||
{$endif fpc}
|
||||
int 10h
|
||||
{$ifdef fpc}
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebp
|
||||
{$endif fpc}
|
||||
mov [StateSize], bx
|
||||
{$ifdef fpc}
|
||||
pop ebx
|
||||
{$endif fpc}
|
||||
cmp al,04fh
|
||||
jnz @notok
|
||||
mov [SaveSupported],TRUE
|
||||
@notok:
|
||||
end ['EDX','ECX','EAX'];
|
||||
regs.eax := $4f04;
|
||||
regs.eax := $4F04; { get buffer size to save state }
|
||||
regs.edx := $0000;
|
||||
regs.ecx := $000F;
|
||||
regs.ecx := $000F; { Save DAC / Data areas / Hardware states }
|
||||
RealIntr($10, regs);
|
||||
StateSize := word(regs.ebx);
|
||||
if byte(regs.eax) = $4f then
|
||||
|
Loading…
Reference in New Issue
Block a user