public void BRK()
    {
        m6502.pc.AddD(1);
        PUSH(m6502.pc.H);
        PUSH(m6502.pc.L);
        PUSH(m6502.p | F_B);
        m6502.p = ((m6502.p | F_I) & ~F_D)&0xFF;
        m6502.pc.SetL(RDMEM(M6502_IRQ_VEC));
        m6502.pc.SetH(RDMEM(M6502_IRQ_VEC+1));
        change_pc16(m6502.pc.D);
        
    }