]> 4ch.mooo.com Git - 16.git/blobdiff - 16/xlib/xpal.asm
wwww
[16.git] / 16 / xlib / xpal.asm
index 558f2665315d1042394faccee37a0ad0e5bad471..a27155dc83a683d3e87571e3ea06109d2329aa11 100755 (executable)
@@ -65,18 +65,18 @@ include xpal.inc
 ; 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
@@ -100,16 +100,16 @@ _x_get_pal_struc endp
 ; 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