ReC98/th05/formats/pi_slot_load.asm

29 lines
448 B
NASM
Raw Normal View History

func pi_slot_load
@@fn = dword ptr (cPtrSize + 2)
@@slot = word ptr (cPtrSize + 2 + dPtrSize)
push bp
mov bp, sp
push si
push di
mov di, [bp+@@slot]
push di
call pi_slot_free
mov si, di
shl si, 2
add si, offset _pi_slot_buffers
imul di, size PiHeader
add di, offset _pi_slot_headers
push word ptr [bp+@@fn+2]
push word ptr [bp+@@fn]
push ds
push di
push ds
push si
call graph_pi_load_pack
pop di
pop si
pop bp
ret 6
endfunc