X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fxx%2Fmxgp.asm;fp=16%2Fxx%2Fmxgp.asm;h=0000000000000000000000000000000000000000;hb=d12ce08b6431697ea341a8029b34ee61626d4594;hp=6c1431730cf4b395ef673ba970503b56b3ee2e00;hpb=b8e4d98f15018513023e6f0bcb9b7ecca9d2ccb4;p=16.git diff --git a/16/xx/mxgp.asm b/16/xx/mxgp.asm deleted file mode 100755 index 6c143173..00000000 --- a/16/xx/mxgp.asm +++ /dev/null @@ -1,56 +0,0 @@ -;----------------------------------------------------------- -; -; MXGP.ASM - Get palette function -; Copyright (c) 1993,1994 by Alessandro Scotti -; -;----------------------------------------------------------- -WARN PRO -INCLUDE MODEX.DEF - -PUBLIC mxGetPalette - -MX_TEXT SEGMENT USE16 PARA PUBLIC 'CODE' - ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING - -;----------------------------------------------------------- -; -; Returns the current setting of the VGA palette. -; -; Input: -; Buffer = pointer to palette data (R,G,B) -; Start = index of first color to get -; Count = number of color to get -; Output: -; none -; -mxGetPalette PROC FAR - ARG Count:WORD, \ - Start:WORD, \ - Buffer:DWORD = ARG_SIZE - ASSUME ds:NOTHING - .enter 0 - .push es, di - - les di, [Buffer] - mov cx, [Count] - mov ax, [Start] - mov dx, 3C7h ; PEL read address register - out dx, al - inc dx - inc dx - cld -@@Loop: - in al, dx - stosb - in al, dx - stosb - in al, dx - stosb - loop @@Loop ; Loop until done - - .pop es, di - .leave ARG_SIZE -mxGetPalette ENDP - -MX_TEXT ENDS -END