2014-11-18 16:56:13 +00:00
|
|
|
; 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
|
2015-02-21 13:12:22 +00:00
|
|
|
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)
|
2014-11-18 16:56:13 +00:00
|
|
|
call graph_pi_free
|
|
|
|
endm
|
|
|
|
|
|
|
|
freePISlotLarge macro slot
|
|
|
|
push ds
|
2015-02-21 13:12:22 +00:00
|
|
|
push offset _pi_slot_headers + (slot * size PiHeader)
|
|
|
|
push large [_pi_slot_buffers + (slot * dPtrSize)]
|
2014-11-18 16:56:13 +00:00
|
|
|
call graph_pi_free
|
|
|
|
endm
|