diff code_part1/OSTC_code_asm_part1/adc_rtc.asm @ 729:71e88ee8bbf2

battery info updater
author heinrichsweikamp
date Sun, 16 Jun 2013 15:50:37 +0200
parents 6fd9a9feca91
children c50296c3059e
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/adc_rtc.asm	Sat Jun 15 15:47:54 2013 +0200
+++ b/code_part1/OSTC_code_asm_part1/adc_rtc.asm	Sun Jun 16 15:50:37 2013 +0200
@@ -102,16 +102,16 @@
 	movwf	sub_a+0
 	movlw	HIGH	d'2000'
 	movwf	sub_a+1
-	call	subU16					;  sub_c = sub_a - sub_b
-	btfsc	neg_flag				; neg_flag=1 if eeprom40:41 < 2000
+	call	subU16					; sub_c = sub_a - sub_b
+	btfss	neg_flag				; neg_flag=1 if eeprom40:41 < 2000
 	bsf		initialize_battery1		; battery need to be initialised
 
 	movlw	LOW		d'4500'			; must be lower then 4500mV...
 	movwf	sub_a+0
 	movlw	HIGH	d'4500'
 	movwf	sub_a+1
-	call	subU16					;  sub_c = sub_a - sub_b
-	btfss	neg_flag				; neg_flag=1 if eeprom40:41 < 4500
+	call	subU16					; sub_c = sub_a - sub_b
+	btfsc	neg_flag				; neg_flag=1 if eeprom40:41 < 4500
 	bsf		initialize_battery1		; battery need to be initialised
 	
 	btfss	initialize_battery1		; battery need to be initialised?