ula_sync.asm
bitfixer_bitfixer/dg/z88dk/libsrc/spectrum/ulaplus/ula_sync.asm
;
;	ZX Spectrum specific routines
;	by Stefano Bodrato, MAR 2010
;
;	int ula_sync();
;
;	Wait for the next video frame
;	clock
;
;	$Id: ula_sync.asm,v 1.2 2015/01/19 01:33:11 pauloscustodio Exp $
;

	PUBLIC	ula_sync

ula_sync:
	; Sync to avoid screen flickering
	ld	a,($5C78)
	ld	e,a
videosync:
	ld	a,($5C78)
	cp e
	ret nz
	jr	videosync
