mirror of https://github.com/nmlgc/ReC98.git
18 lines
524 B
PHP
18 lines
524 B
PHP
; PI-related macros. Need to be in a separate file because TASM doesn't seem
|
|
; to like macro definitions inside segments...
|
|
|
|
freePISlot macro slot
|
|
push ds
|
|
push offset pi_slot_headers + (slot * size PiHeader)
|
|
push word ptr pi_slot_buffers + (slot * dPtrSize) + 2
|
|
push word ptr pi_slot_buffers + (slot * dPtrSize)
|
|
call graph_pi_free
|
|
endm
|
|
|
|
freePISlotLarge macro slot
|
|
push ds
|
|
push offset pi_slot_headers + (slot * size PiHeader)
|
|
push large [pi_slot_buffers + (slot * dPtrSize)]
|
|
call graph_pi_free
|
|
endm
|