public void SBC_NES(int tmp)
    {            															
            int c = (m6502.p & F_C) ^ F_C;									
            int sum = m6502.a - tmp - c;										
                    m6502.p = (m6502.p & ~(F_V | F_C))&0xFF;										
                    if (((m6502.a^tmp) & (m6502.a^sum) & F_N)!=0)						
                            m6502.p |= F_V;											
                    if ((sum & 0xff00) == 0)								
                            m6502.p |= F_C;											
                    m6502.a = sum & 0xFF;										
            															
            SET_NZ(m6502.a);
        }