diff code_part1/OSTC_code_asm_part1/isr.asm @ 359:91352bb698cf

Oups... time to sleep !
author JeanDo
date Tue, 07 Jun 2011 19:10:49 +0200
parents 9ef9b681f38f
children 88660a400338
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/isr.asm	Tue Jun 07 11:55:31 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/isr.asm	Tue Jun 07 19:10:49 2011 +0200
@@ -375,11 +375,9 @@
 RTCisr2:
 		incf		secs,F					; adjusts seconds, minutes, hours, day, month and year. Checks for a leap year and works until 2099!
 		movlw		d'60'
-		cpfseq		secs
-		bra         secs_60
-        return
-secs_60:
-		clrf		secs
+		cpfseq		secs                    ; Secs == 60 ?
+        return                              ; NO : done.
+		clrf		secs                    ; YES: increment minutes instead...
 		bsf			oneminupdate
 		incf		mins,F
 		movlw		d'59'