1 ;-----------------------------------------------------------
\r
3 ; MXGP.ASM - Get 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 ; Returns the current setting of the VGA palette.
\r
20 ; Buffer = pointer to palette data (R,G,B)
\r
21 ; Start = index of first color to get
\r
22 ; Count = number of color to get
\r
26 mxGetPalette PROC FAR
\r
29 Buffer:DWORD = ARG_SIZE
\r
37 mov dx, 3C7h ; PEL read address register
\r
49 loop @@Loop ; Loop until done
\r