Hi, Coss_cat

@ first, i must tell you here is a PicBASIC Pro Forum ... so it is not the best place to ask for Assembler relative questions ...

NOW, I see two possibilities ...

1) PortD is controlled by the TrisE register ... so check that.

2) may be a simple debounce problem ...

Alain