diff code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 808:c966ea4f8f38

Minor: Avoid unwanted "-1" in internal logbook
author heinrichsweikamp
date Fri, 13 Feb 2015 15:37:37 +0100
parents c50296c3059e
children 88e1a4e3e05b
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm	Sat Feb 07 12:37:04 2015 +0100
+++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm	Fri Feb 13 15:37:37 2015 +0100
@@ -357,6 +357,8 @@
 	movff		PRODL,sub_a+0
 	movff		PRODH,sub_a+1
 	call		subU16					; sub_c = sub_a - sub_b (with UNSIGNED values)
+    
+    bcf         premenu                 ; Clear temporary flag
 
     btfss       neg_flag
     bra         display_start_dive_normal       ; Not during midnight...