Check for what?

If I replace TRISIO=%00101000 with TRISIO=%00001000, it will also work fine (but without a button).