Hey guys,
I've been teaching myself PICS by going through this tutorial website someone on here posted a while ago www.googligum.com. and I find it extremely useful and informative.
Attached is a screenshot of a section of code used to increment the value of some digits (being sent to a 7-seg display). I understand the movlw .10 and movlw .6 commands and even the xor part (testing if the result is zero) but why skip right to the end of the subroutine?
if my one's place rolls over wouldn't you want to update the tens place? or am I just reading this code wrong?
I've been teaching myself PICS by going through this tutorial website someone on here posted a while ago www.googligum.com. and I find it extremely useful and informative.
Attached is a screenshot of a section of code used to increment the value of some digits (being sent to a 7-seg display). I understand the movlw .10 and movlw .6 commands and even the xor part (testing if the result is zero) but why skip right to the end of the subroutine?
if my one's place rolls over wouldn't you want to update the tens place? or am I just reading this code wrong?
Attachments
Last edited: