Thomaeum schrieb:
> Hallo,
> gibt es in TP 6 die Möglichkeit, dem System die standardmäßig
benutzte
> Farbpalette zu entlocken?
> Does in TP 6 exist a method to obtain the
standard colour palette from the system.
VGA Palette
(* für 16 Farben
for 16 colours *)
PROCEDURE GetPalette16(var palette);assembler;
ASM
LES DI,palette
MOV DX,03C7H
XOR AL,AL
OUT DX,AL
ADD DX,2
MOV CX,48 {3*16}
(* Franz Glaser suggests: *) CLD
INSB
END;
It is not tested by the compiler / runtime program.
Translation, additions and comments
by Franz Glaser
Turbo Pascal links: http://geo.meg-glaser.at/tp.html
More from Michael Knapp on the TP-links site:
RGB_386_demo and
GraphiX V 6