5 INCLUDE "exec/funcdef.i"
6 INCLUDE "exec/memory.i"
7 INCLUDE "exec/exec_lib.i"
16 ; Function to do AllocVecPooled (pool, memsize)
23 move.l #MEMF_PUBLIC
!MEMF_CLEAR
,d1
28 addq.l #
4,d0
; Get space for tracking
29 move.l d0
,-(sp) ; Save the size
30 jsr _LVOAllocPooled
(a6
) ; Call pool...
31 move.l
(sp)+,d1
; Get size back...
32 tst.l d0
; Check for error
33 beq.s avp_fail
; If NULL, failed!
34 move.l d0
,a0
; Get pointer...
35 move.l d1
,(a0
)+ ; Store size
36 move.l a0
,d0
; Get result
42 ; Function to do FreeVecPooled (pool, memory)
55 move.l
-(a1
),d0
; Get size / ajust pointer
56 jsr _LVOFreePooled
(a6
)