public int ROR(int tmp)
    {
        tmp |= (m6502.p & F_C) << 8;
        m6502.p = ((m6502.p & ~F_C) | (tmp & F_C))&0xFF;
        tmp = (tmp >> 1)&0xFF;
        SET_NZ(tmp);
        return tmp;
    }