comparison code_part1/OSTC_code_asm_part1/start.asm @ 229:85ea09d3b9d8

Nofly should not be reset after dive simulation (bug BB18).
author JeanDo
date Tue, 15 Mar 2011 18:13:51 +0100
parents f15e804ff67f
children 2cbaa01dac26
comparison
equal deleted inserted replaced
228:6d4e29d80ff3 229:85ea09d3b9d8
39 39
40 ; Defaults for RTC 40 ; Defaults for RTC
41 call disable_rs232 ; disable UART module 41 call disable_rs232 ; disable UART module
42 call RTCinit ; reset RTC 42 call RTCinit ; reset RTC
43 43
44 ; Extra power-up reset jDG jDG jDG jDG 44 ; Extra power-up reset (JeanDo)
45 ifdef TESTING 45 ifdef TESTING
46 call do_menu_reset_all2 46 call do_menu_reset_all2
47 endif 47 endif
48 ; DONE jDG jDG jDG jDG
49 48
50 ; Air pressure compensation after reset 49 ; Air pressure compensation after reset
51 call get_calibration_data ; Get calibration data from pressure sensor 50 call get_calibration_data ; Get calibration data from pressure sensor
52 51
53 bcf pressure_refresh 52 bcf pressure_refresh
70 movff amb_pressure+1,last_surfpressure_15min+1 69 movff amb_pressure+1,last_surfpressure_15min+1
71 movff amb_pressure+0,last_surfpressure_30min+0 70 movff amb_pressure+0,last_surfpressure_30min+0
72 movff amb_pressure+1,last_surfpressure_30min+1 ; Rests all airpressure registers 71 movff amb_pressure+1,last_surfpressure_30min+1 ; Rests all airpressure registers
73 72
74 ; reset deco data 73 ; reset deco data
75 incf nofly_time+0,F ; =1
76 clrf WREG ; Use as buffer 74 clrf WREG ; Use as buffer
77 movff WREG,char_I_He_ratio ; No He at the Surface 75 movff WREG,char_I_He_ratio ; No He at the Surface
78 movlw d'79' ; 79% N2 76 movlw d'79' ; 79% N2
79 movff WREG,char_I_N2_ratio ; No He at the Surface 77 movff WREG,char_I_N2_ratio ; No He at the Surface
80 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine 78 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine