2014-12-16 04:53:56 +00:00
|
|
|
; int DEFCONV pi_slot_palette_apply(int slot)
|
2014-11-22 08:29:09 +00:00
|
|
|
if GAME ge 3
|
|
|
|
align 2
|
|
|
|
endif
|
|
|
|
|
|
|
|
pi_slot_palette_apply proc
|
|
|
|
@@slot = word ptr (cPtrSize + 2)
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
push (16 * 3)
|
|
|
|
push ds
|
|
|
|
mov ax, [bp+@@slot]
|
|
|
|
imul ax, size PiHeader
|
|
|
|
add ax, offset pi_slot_headers + PiHeader._palette
|
|
|
|
push ax
|
|
|
|
push ds
|
|
|
|
push offset Palettes
|
|
|
|
call _memcpy
|
|
|
|
add sp, 10
|
|
|
|
call palette_show
|
|
|
|
pop bp
|
|
|
|
if GAME ge 3
|
|
|
|
retf 2
|
|
|
|
else
|
|
|
|
ret
|
|
|
|
endif
|
|
|
|
pi_slot_palette_apply endp
|