A lot of functions push and pull r5 to use it. I replaced r5 with an int variable within the function, not a global variable becasue thaat was not needed. I'm a bit worried about the and.b conversion from assembly to C. For now I'll jsut use &= and if my LCD does not clear that may be one of the first places I start troubleshooting.