asm_w_vector_capacity.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/adt/w_vector/z80/asm_w_vector_capacity.asm

; ===============================================================
; Feb 2014
; ===============================================================
; 
; size_t w_vector_capacity(w_vector_t *v)
;
; Return the amount of space allocated for the vector's array in words.
;
; ===============================================================

SECTION code_clib
SECTION code_adt_w_vector

PUBLIC asm_w_vector_capacity

EXTERN l_readword_2_hl

defc asm_w_vector_capacity = l_readword_2_hl - 4

   ; enter : hl = vector *v
   ;
   ; exit  : hl = capacity in words
   ;
   ; uses  : a, hl
