X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fxlib%2Fxpal.asm;h=a27155dc83a683d3e87571e3ea06109d2329aa11;hb=d48cfaf24d7fe48da7b3bd5a7bb89f859e83c280;hp=558f2665315d1042394faccee37a0ad0e5bad471;hpb=922a4ace00cd3b3b8febf878b0c679a11b654731;p=16.git diff --git a/16/xlib/xpal.asm b/16/xlib/xpal.asm index 558f2665..a27155dc 100755 --- a/16/xlib/xpal.asm +++ b/16/xlib/xpal.asm @@ -65,18 +65,18 @@ include xpal.inc ; Written by Themie Gouthas ;---------------------------------------------------------------------- _x_get_pal_struc proc -ARG PalBuff:dword,NumColors:word,StartColor:word +;ARG PalBuff:dword,NumColors:word,StartColor:word push bp ; Set up stack frame mov bp,sp push di push si cld - les di,dword ptr [PalBuff] ; Point es:di to palette buffer - mov si,[StartColor] ; Store the Start Colour + les di,dword ptr [bp+4] ; Point es:di to palette buffer + mov si,[bp+10] ; Store the Start Colour mov ax,si stosb - mov dx,[NumColors] ; Store the Number of Colours + mov dx,[bp+8] ; Store the Number of Colours mov al,dl stosb @@ -100,16 +100,16 @@ _x_get_pal_struc endp ; Written by Themie Gouthas ;---------------------------------------------------------------------- _x_get_pal_raw proc -ARG PalBuff:dword,NumColors:word,StartColor:word +;ARG PalBuff:dword,NumColors:word,StartColor:word push bp ; Set up stack frame mov bp,sp push di push si - les di,dword ptr [PalBuff] ; Point es:di to palette buffer + les di,dword ptr [bp+4] ; Point es:di to palette buffer - mov si,[StartColor] - mov cx,[NumColors] + mov si,[bp+10] + mov cx,[bp+8] ReadPalEntry: cld