and then, when i open the datasheet for the 16f877a and search for trise i find this....

SUMMARY OF REGISTERS ASSOCIATED WITH PORTD
89h TRISE IBF OBF IBOV PSPMODE — PORTE Data Direction Bits
Well, thats helpfull!

TRISE affects PORTD!

That is another for the FAQ's

Thanks for everyones help