comparison 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
comparison
equal deleted inserted replaced
807:c50296c3059e 808:c966ea4f8f38
355 clrf sub_b+1 355 clrf sub_b+1
356 movff hi,sub_b+0 356 movff hi,sub_b+0
357 movff PRODL,sub_a+0 357 movff PRODL,sub_a+0
358 movff PRODH,sub_a+1 358 movff PRODH,sub_a+1
359 call subU16 ; sub_c = sub_a - sub_b (with UNSIGNED values) 359 call subU16 ; sub_c = sub_a - sub_b (with UNSIGNED values)
360
361 bcf premenu ; Clear temporary flag
360 362
361 btfss neg_flag 363 btfss neg_flag
362 bra display_start_dive_normal ; Not during midnight... 364 bra display_start_dive_normal ; Not during midnight...
363 365
364 ; subtract result from 1440 (amount minutes/day) 366 ; subtract result from 1440 (amount minutes/day)