<< Previous | Next >> | |
|
xmem void * pnext_fast( Pool_t * p, void * e );
Description
- Get the next allocated element in a root pool. The pool MUST be set to being a linked pool using
pool_link(p, <non-zero>)
; otherwise, the results are undefined.
- This is an assembler-only version of
pnext()
.
- *** Do _not_ call this function from C. ***
- Registers
- Parameters in IX, DE respectively
Trashes F, DE
Return value in HL, carry flag
- Example
ld ix,my_pool
ld de,(current_element)
lcall pnext_fast
jr c,.no_more_elems
; HL points to the next allocated elementParameters
- p
- Pool handle structure, as previously passed to
pool_init()
. Pass this in IX register.
- e
- Current element, address in DE register. See
pnext()
for a full description.
Return value
- C flag set, HL=0: There are no more elements
C flag clear (NC): HL points to next elementLibrary
- POOL.LIB
See Also
- pool_init, pool_link, palloc, pfree, pfirst, pprev
Dynamic C Functions | << Previous | Next >> | rabbit.com |