public static void WRMEM(int addr,int data)
    {
        //if(m6502log!=null) fprintf(m6502log,"M6502 WRITEMEM addr=%d data=%d\n",addr,data);
        cpu_writemem16(addr,data);
    }
/*TODO*////***************************************************************
/*TODO*/// *	BRA  branch relative
/*TODO*/// *	extra cycle if page boundary is crossed
/*TODO*/// ***************************************************************/
/*TODO*///#define BRA(cond)												\
/*TODO*///	if (cond)													\
/*TODO*///	{															\
/*TODO*///		tmp = RDOPARG();										\
/*TODO*///		EAW = PCW + (signed char)tmp;							\
/*TODO*///		m6502_ICount -= (PCH == EAH) ? 3 : 4;					\
/*TODO*///		PCD = EAD;												\
/*TODO*///		change_pc16(PCD);										\
/*TODO*///	}															\
/*TODO*///	else														\
/*TODO*///	{															\
/*TODO*///		PCW++;													\
/*TODO*///		m6502_ICount -= 2;										\
/*TODO*///	}