; Written by Themie Gouthas\r
;----------------------------------------------------------------------\r
_x_get_pal_struc proc\r
-ARG PalBuff:dword,NumColors:word,StartColor:word\r
+;ARG PalBuff:dword,NumColors:word,StartColor:word\r
push bp ; Set up stack frame\r
mov bp,sp\r
push di\r
push si\r
cld\r
\r
- les di,dword ptr [PalBuff] ; Point es:di to palette buffer\r
- mov si,[StartColor] ; Store the Start Colour\r
+ les di,dword ptr [bp+4] ; Point es:di to palette buffer\r
+ mov si,[bp+10] ; Store the Start Colour\r
mov ax,si\r
stosb\r
- mov dx,[NumColors] ; Store the Number of Colours\r
+ mov dx,[bp+8] ; Store the Number of Colours\r
mov al,dl\r
stosb\r
\r
; Written by Themie Gouthas\r
;----------------------------------------------------------------------\r
_x_get_pal_raw proc\r
-ARG PalBuff:dword,NumColors:word,StartColor:word\r
+;ARG PalBuff:dword,NumColors:word,StartColor:word\r
push bp ; Set up stack frame\r
mov bp,sp\r
push di\r
push si\r
\r
- les di,dword ptr [PalBuff] ; Point es:di to palette buffer\r
+ les di,dword ptr [bp+4] ; Point es:di to palette buffer\r
\r
- mov si,[StartColor]\r
- mov cx,[NumColors]\r
+ mov si,[bp+10]\r
+ mov cx,[bp+8]\r
\r
ReadPalEntry:\r
cld\r