mirror of https://github.com/nmlgc/ReC98.git
29 lines
435 B
NASM
29 lines
435 B
NASM
|
; int __cdecl pi_slot_palette_apply(int slot)
|
||
|
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
|