diff code_part1/OSTC_code_asm_part1/isr.asm @ 356:9ef9b681f38f

BUGFIX time_correction_value (CF48) > 60 or < 0.
author JeanDo
date Tue, 07 Jun 2011 04:05:49 +0200
parents ba0f30f3d560
children 91352bb698cf
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/isr.asm	Tue Jun 07 03:55:30 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/isr.asm	Tue Jun 07 04:05:49 2011 +0200
@@ -374,9 +374,11 @@
 		; Now, do the RTC routine....
 RTCisr2:
 		incf		secs,F					; adjusts seconds, minutes, hours, day, month and year. Checks for a leap year and works until 2099!
-		movlw		d'59'
-		cpfsgt		secs
-		return
+		movlw		d'60'
+		cpfseq		secs
+		bra         secs_60
+        return
+secs_60:
 		clrf		secs
 		bsf			oneminupdate
 		incf		mins,F