mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 23:21:57 +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;
|
||||
asm
|
||||
mov ax,CGAPaletteID
|
||||
push bp
|
||||
mov bl, al
|
||||
mov bh, 1
|
||||
mov ah, 0Bh
|
||||
push ds
|
||||
push bp
|
||||
int 10h
|
||||
pop bp
|
||||
pop ds
|
||||
end;
|
||||
|
||||
procedure SetCGABorder(CGABorder: Byte); assembler;
|
||||
asm
|
||||
mov ax,CGABorder
|
||||
push bp
|
||||
mov bl, al
|
||||
mov bh, 0
|
||||
mov ah, 0Bh
|
||||
push ds
|
||||
push bp
|
||||
int 10h
|
||||
pop bp
|
||||
pop ds
|
||||
end;
|
||||
|
||||
procedure SetBkColorCGA320(ColorNum: ColorType);
|
||||
|
Loading…
Reference in New Issue
Block a user