What is wrong with this code?
So, on my course, i was tasked with writing code for PICs on MicroCode Studio, and one assignment is about a binary counter, for an input of 00 it counts upwards, 01 downwards, 10 pairs and 11 odd numbers, but upon compiling and integrating the code on a Proteus schematic it only works for 00 and 11, I’m having trouble finding the cause because there doesn´t seem to be a lot of information about these software available, thanks for any advice



So, on my course, i was tasked with writing code for PICs on MicroCode Studio, and one assignment is about a binary counter, for an input of 00 it counts upwards, 01 downwards, 10 pairs and 11 odd numbers, but upon compiling and integrating the code on a Proteus schematic it only works for 00 and 11, I’m having trouble finding the cause because there doesn´t seem to be a lot of information about these software available, thanks for any advice


