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
|
|
|
|
|
2015-02-21 13:12:22 +00:00
|
|
|
proc_defconv pi_slot_palette_apply
|
2014-11-22 08:29:09 +00:00
|
|
|
@@slot = word ptr (cPtrSize + 2)
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
push (16 * 3)
|
|
|
|
push ds
|
|
|
|
mov ax, [bp+@@slot]
|
|
|
|
imul ax, size PiHeader
|
2015-02-21 13:12:22 +00:00
|
|
|
add ax, offset _pi_slot_headers + PiHeader._palette
|
2014-11-22 08:29:09 +00:00
|
|
|
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
|
2015-02-21 13:12:22 +00:00
|
|
|
endp_defconv
|