mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 21:49:09 +02:00
+ also save/restore DS before/after the int 10h call inside SetCGAPalette and SetCGABorder
git-svn-id: trunk@41014 -
This commit is contained in:
parent
9da40ee818
commit
b48e901ed8
@ -566,23 +566,27 @@ var
|
|||||||
procedure SetCGAPalette(CGAPaletteID: Byte); assembler;
|
procedure SetCGAPalette(CGAPaletteID: Byte); assembler;
|
||||||
asm
|
asm
|
||||||
mov ax,CGAPaletteID
|
mov ax,CGAPaletteID
|
||||||
push bp
|
|
||||||
mov bl, al
|
mov bl, al
|
||||||
mov bh, 1
|
mov bh, 1
|
||||||
mov ah, 0Bh
|
mov ah, 0Bh
|
||||||
|
push ds
|
||||||
|
push bp
|
||||||
int 10h
|
int 10h
|
||||||
pop bp
|
pop bp
|
||||||
|
pop ds
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure SetCGABorder(CGABorder: Byte); assembler;
|
procedure SetCGABorder(CGABorder: Byte); assembler;
|
||||||
asm
|
asm
|
||||||
mov ax,CGABorder
|
mov ax,CGABorder
|
||||||
push bp
|
|
||||||
mov bl, al
|
mov bl, al
|
||||||
mov bh, 0
|
mov bh, 0
|
||||||
mov ah, 0Bh
|
mov ah, 0Bh
|
||||||
|
push ds
|
||||||
|
push bp
|
||||||
int 10h
|
int 10h
|
||||||
pop bp
|
pop bp
|
||||||
|
pop ds
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure SetBkColorCGA320(ColorNum: ColorType);
|
procedure SetBkColorCGA320(ColorNum: ColorType);
|
||||||
|
Loading…
Reference in New Issue
Block a user