	title	Module from library BASE_2 : FILECL
	name	('FILECL')
	maclib	baselib.lib

; Entry for functions close and delete a file

; Copyright (C)	Werner Cirsovius
;		Hohe Weide 44
;		D-20253 Hamburg
;		Tel.: +49-40-4223247

;		Version 3.0 October 1988

; ENTRY	Reg pair <DE> points to FCB
;	Accu holds BDOS function number

; EXIT	On normal return carry is reset
;	On error carry will be set
;	Accu holds content of reg H

	entry	@filcl

	extrn	@BDOS

@filcl:
	push	hl
	call	@BDOS		; Execute function
	rla			; Fix for error
	ld	a,h		; Get extended error
	pop	hl
	ret

	end

