adt_StackCount.asm
bitfixer_bitfixer/dg/z88dk/libsrc/adt/stack/adt_StackCount.asm
; uint __FASTCALL__ adt_StackCount(struct adt_Stack *s)
; 11.2006 aralbrec

PUBLIC adt_StackCount

; return number of items in stack
;
; enter: HL = struct adt_Stack *
; exit : HL = number of items

.adt_StackCount
   ld a,(hl)
   inc hl
   ld h,(hl)
   ld l,a
   ret
