comparison code_part1/OSTC_code_asm_part1/start.asm @ 116:14a074e1a375

Split C code, and use direct linking.
author JeanDo
date Sun, 26 Dec 2010 14:30:13 +0100
parents 6f8e3a08011e
children f24137eb85de
comparison
equal deleted inserted replaced
115:50a06adabc67 116:14a074e1a375
80 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine 80 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine
81 movff amb_pressure+1,int_I_pres_respiration+1 81 movff amb_pressure+1,int_I_pres_respiration+1
82 82
83 movlw d'0' 83 movlw d'0'
84 movff WREG,char_I_step_is_1min ; 2 second deco mode 84 movff WREG,char_I_step_is_1min ; 2 second deco mode
85 call deco_main_clear_tissue ; 85 call deco_clear_tissue ;
86 movlb b'00000001' ; select ram bank 1 86 call deco_calc_desaturation_time ; calculate desaturation time
87 call deco_main_calc_desaturation_time; calculate desaturation time 87 call deco_clear_CNS_fraction ; clear CNS
88 movlb b'00000001' ; select ram bank 1
89 call main_clear_CNS_fraction ; clear CNS
90 movlb b'00000001' ; select ram bank 1
91 call calc_deko_surfmode ; calculate desaturation every minute 88 call calc_deko_surfmode ; calculate desaturation every minute
92 movlb b'00000001' ; select ram bank 1 89 call deco_calc_wo_deco_step_1_min ; calculate deco in surface mode
93 call deco_main_calc_wo_deco_step_1_m ; calculate deco in surface mode
94 movlb b'00000001' ; select ram bank 1 90 movlb b'00000001' ; select ram bank 1
95 91
96 ; check firmware and reset Custom Functions after an update 92 ; check firmware and reset Custom Functions after an update
97 movlw LOW 0x101 93 movlw LOW 0x101
98 movwf EEADR 94 movwf EEADR