zx_mb02.asm
bitfixer_bitfixer/dg/z88dk/libsrc/spectrum/diagnostic/zx_mb02.asm
;
;	ZX Spectrum specific routines
;	by Stefano Bodrato, 11/02/2008
;
;	int zx_mb02();
;
;	The result is:
;	- 0 (false) if MB-02 isn't connected
;	- 1 (true) if MB-02 real time clock is responding
;
;	$Id: zx_mb02.asm,v 1.2 2015/01/19 01:33:08 pauloscustodio Exp $
;

	PUBLIC	zx_mb02
	
zx_mb02:
	ld	bc,3
	in	a,(c)
	cp	10
	ld	hl,0
	ret	nc
	inc	hl
	ret
