One bit ruined my day

I'm working on a custom microcontroller and I spent the entire day tracking down a single bit error in my code.