Hi! I am trying to use subroutines, but I can't find the mistake, the code runs but doesn't change if the bit 0 from port d is 0 or 1.
Could you help me please!
These are the instructions: read bit 0 of port B. If the bit is active, you must execute the procedure that triples r16, If the bit is inactive, you must execute the procedure that duplicates and increments r16.
sbic PINB, 0