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

Split C code, and use direct linking.
author JeanDo
date Sun, 26 Dec 2010 14:30:13 +0100
parents 8aa8acada0fd
children 2907b42c195b
comparison
equal deleted inserted replaced
115:50a06adabc67 116:14a074e1a375
99 movwf wait_temp 99 movwf wait_temp
100 movff wait_temp,char_I_desaturation_multiplier 100 movff wait_temp,char_I_desaturation_multiplier
101 GETCUSTOM8 d'11' ; Saturation multiplier % 101 GETCUSTOM8 d'11' ; Saturation multiplier %
102 movwf wait_temp 102 movwf wait_temp
103 movff wait_temp,char_I_saturation_multiplier 103 movff wait_temp,char_I_saturation_multiplier
104 call deco_main_calc_desaturation_time; calculate desaturation time 104 call deco_calc_desaturation_time ; calculate desaturation time
105 movlb b'00000001' ; select ram bank 1 105 movlb b'00000001' ; select ram bank 1
106 ostc_debug 'H' ; Sends debug-information to screen if debugmode active 106 ostc_debug 'H' ; Sends debug-information to screen if debugmode active
107 107
108 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! 108 call wait_switches ; Waits until switches are released, resets flag if button stays pressed!
109 109
270 movff wait_temp,char_I_saturation_multiplier 270 movff wait_temp,char_I_saturation_multiplier
271 GETCUSTOM8 d'12' ; Desaturation multiplier % 271 GETCUSTOM8 d'12' ; Desaturation multiplier %
272 movwf wait_temp 272 movwf wait_temp
273 movff wait_temp,char_I_desaturation_multiplier 273 movff wait_temp,char_I_desaturation_multiplier
274 274
275 call deco_main_calc_wo_deco_step_1_m ; calculate deco in surface mode 275 call deco_calc_wo_deco_step_1_min ; calculate deco in surface mode
276 movlb b'00000001' ; select ram bank 1 276 movlb b'00000001' ; select ram bank 1
277 ostc_debug 'J' ; Sends debug-information to screen if debugmode active 277 ostc_debug 'J' ; Sends debug-information to screen if debugmode active
278 bcf LED_red 278 bcf LED_red
279 return 279 return
280 280