comparison src/divemode.asm @ 437:23b58c4bc6aa

CHANGE: Language fixes, 2.08 release
author heinrichsweikamp
date Thu, 30 Jun 2016 10:28:12 +0200
parents eccae727702f
children d93d75ae01bf
comparison
equal deleted inserted replaced
436:95ee78f4a974 437:23b58c4bc6aa
807 movff average_depth_hold+1,xC+1 807 movff average_depth_hold+1,xC+1
808 movff average_depth_hold+2,xC+2 808 movff average_depth_hold+2,xC+2
809 movff average_depth_hold+3,xC+3 809 movff average_depth_hold+3,xC+3
810 810
811 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder 811 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder
812 movff xC+0,avr_rel_pressure+0 812 movff xC+0,avg_rel_pressure+0
813 movff xC+1,avr_rel_pressure+1 813 movff xC+1,avg_rel_pressure+1
814 814
815 btfss divemode2 ; displayed divetime is running? 815 btfss divemode2 ; displayed divetime is running?
816 return ; No (e.g. too shallow) 816 return ; No (e.g. too shallow)
817 817
818 ; 3. Compute Total Average Depth on base of total_divetime_seconds:2 818 ; 3. Compute Total Average Depth on base of total_divetime_seconds:2
821 movff average_depth_hold_total+0,xC+0 821 movff average_depth_hold_total+0,xC+0
822 movff average_depth_hold_total+1,xC+1 822 movff average_depth_hold_total+1,xC+1
823 movff average_depth_hold_total+2,xC+2 823 movff average_depth_hold_total+2,xC+2
824 movff average_depth_hold_total+3,xC+3 824 movff average_depth_hold_total+3,xC+3
825 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder 825 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder
826 movff xC+0,avr_rel_pressure_total+0 826 movff xC+0,avg_rel_pressure_total+0
827 movff xC+1,avr_rel_pressure_total+1 827 movff xC+1,avg_rel_pressure_total+1
828 return 828 return
829 829
830 reset_average1: 830 reset_average1:
831 clrf average_depth_hold+0 831 clrf average_depth_hold+0
832 clrf average_depth_hold+1 832 clrf average_depth_hold+1