1 ;-----------------------------------------------------------
\r
3 ; MXSP.ASM - Set palette function
\r
4 ; Copyright (c) 1993,1994 by Alessandro Scotti
\r
6 ;-----------------------------------------------------------
\r
12 MX_TEXT SEGMENT USE16 PARA PUBLIC 'CODE'
\r
13 ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING
\r
15 ;-----------------------------------------------------------
\r
17 ; Updates the VGA palette.
\r
20 ; Buffer = pointer to palette data (R,G,B)
\r
21 ; Start = index of first color to set
\r
22 ; Count = number of color to set
\r
26 mxSetPalette PROC FAR
\r
29 Buffer:DWORD = ARG_SIZE
\r
37 mov dx, 3C8h ; PEL write address register
\r
41 cli ; Disable interrupts
\r
49 loop @@Loop ; Loop until done
\r
50 sti ; Enable interrupts
\r