/
/ PDP-11 C.
/ Standard Library.
/
/ Query the free list.
/

	.globl	freesp

/ 
/ Return total number of bytes of space in the free list.
/ Sensitive to the format of the free list (alloc.asm)
/
/ int freespace();
/

freesp:
	jsr	r0,_save
	clr	r0
	mov	_avail,r1
	beq	1f

0:
	add	2(r1),r0
	mov	(r1),r1
	bne	0b

1:
	jmp	_ret
