public void sync()
    {
    	/* SYNC stops processing instructions until an interrupt request happens. */
    	/* This doesn't require the corresponding interrupt to be enabled: if it */
    	/* is disabled, execution continues with the next instruction. */
    	m6809.int_state |= M6809_SYNC;	 /* HJB 990227 */
    	CHECK_IRQ_LINES();
    	/* if M6809_SYNC has not been cleared by CHECK_IRQ_LINES,
    	 * stop execution until the interrupt lines change. */
    	if(( m6809.int_state & M6809_SYNC )!=0)
    		if (m6809_ICount[0] > 0) m6809_ICount[0] = 0;
        if(m6809log!=null) fprintf(m6809log,"M6809#%d sync :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\n", cpu_getactivecpu(),m6809.pc,m6809.ppc,m6809.a,m6809.b,getDreg(),m6809.dp,m6809.u,m6809.s,m6809.x,m6809.y,m6809.cc,ea);
 
    }