comparison src/tft_outputs.asm @ 444:d93d75ae01bf

Adjustable timeout for Divemode (Config 0x48)
author heinrichsweikamp
date Wed, 17 Aug 2016 09:50:37 +0200
parents 23b58c4bc6aa
children b4f28ab23b87
comparison
equal deleted inserted replaced
443:84bb5cbebe57 444:d93d75ae01bf
1598 tstfsz WREG ; Is there room for the warning? 1598 tstfsz WREG ; Is there room for the warning?
1599 return ; No 1599 return ; No
1600 call TFT_warning_set_window_com 1600 call TFT_warning_set_window_com
1601 call TFT_standard_color 1601 call TFT_standard_color
1602 STRCPY 0x94 ; "End of dive" icon 1602 STRCPY 0x94 ; "End of dive" icon
1603 movlw LOW divemode_timeout 1603 movff opt_diveTimeout,WREG ; in [min]
1604 movwf sub_a+0 1604 mullw .60
1605 movlw HIGH divemode_timeout 1605 movff PRODL,sub_a+0
1606 movwf sub_a+1 1606 movff PRODH,sub_a+1 ; in [s]
1607 movff timeout_counter,sub_b+0 1607 movff timeout_counter,sub_b+0
1608 movff timeout_counter2,sub_b+1 1608 movff timeout_counter2,sub_b+1
1609 call subU16 ; sub_c = sub_a - sub_b (with UNSIGNED values) 1609 call subU16 ; sub_c = sub_a - sub_b (with UNSIGNED values)
1610 movff sub_c+0, lo 1610 movff sub_c+0, lo
1611 movff sub_c+1, hi 1611 movff sub_c+1, hi