mirror of https://github.com/nmlgc/ReC98.git
18 lines
529 B
PHP
18 lines
529 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
|