include	clib.inc

PPROC	emmcoreleft
	mov	AH,42h
	int	67h
	test	AH,AH
	jnz	emmcoreleft_err
	mov	AX,4000h
	mul	BX
	test	BX,BX
    emmcoreleft_end:
	ret
    emmcoreleft_err:
	xor	AX,AX
	cwd
	jmp	emmcoreleft_end
PEND	emmcoreleft

	END
