<< Previous | Next >> | |
|
xmem long pxlast_fast( Pool_t * p );
Description
- Get the last allocated element in an xmem 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
pxlast()
.
- *** Do _not_ call this function from C. ***
- Registers
- Parameter in IX
Trashes F, HL
Return value in BCDE, carry flag
- Example
ld ix,my_pool
lcall pxlast_fast
jr c,.no_elems
; BCDE points to last elementParameters
- p
- Pool handle structure, as previously passed to
pool_xinit()
. Pass this in IX register.
Return value
- C flag set: There are no more elements
C flag clear (NC): BCDE points to last elementLibrary
- POOL.LIB
See Also
- pool_xinit, pool_link, pxlast, pxprev_fast
Dynamic C Functions | << Previous | Next >> | rabbit.com |