public void rti()
    {
    	int t;
    	m6809.cc=PULLBYTE();
    	t = m6809.cc & CC_E;		/* HJB 990225: entire state saved? */
    	if(t!=0)
    	{
            m6809_ICount[0] -= 9;
    		m6809.a=PULLBYTE();
    		m6809.b=PULLBYTE();
    		m6809.dp=PULLBYTE();
    		m6809.x=PULLWORD();
    		m6809.y=PULLWORD();
    		m6809.u=PULLWORD();
    	}
    	m6809.pc=PULLWORD();
    	CHANGE_PC();
    	CHECK_IRQ_LINES();	/* HJB 990116 */
        //if(m6809log!=null) fprintf(m6809log,"M6809#%d rti :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);
        

    }