comparison code_part1/OSTC_code_asm_part1/menu_reset.asm @ 422:193520542496

fix ram banking in "Reset all"
author heinrichsweikamp
date Tue, 02 Aug 2011 11:59:36 +0200
parents b2c9cc018671
children a76c5a3e9e96
comparison
equal deleted inserted replaced
421:af2894e5cda4 422:193520542496
297 call deco_clear_CNS_fraction ; clear CNS 297 call deco_clear_CNS_fraction ; clear CNS
298 movlb b'00000001' ; select ram bank 1 298 movlb b'00000001' ; select ram bank 1
299 clrf nofly_time+0 ; Reset NoFly 299 clrf nofly_time+0 ; Reset NoFly
300 clrf nofly_time+1 ; Reset NoFly 300 clrf nofly_time+1 ; Reset NoFly
301 bcf nofly_active ; Clear flag 301 bcf nofly_active ; Clear flag
302 goto restart ; done. quit to surfmode 302 goto restart ; done. quit to surfmode
303 303
304 do_menu_reset_all: 304 do_menu_reset_all:
305 call PLED_confirmbox ; Returns WREG=0 for Cancel (Or Timeout) and WREG=1 for OK! 305 call PLED_confirmbox ; Returns WREG=0 for Cancel (Or Timeout) and WREG=1 for OK!
306 movwf menupos ; Used as temp 306 movwf menupos ; Used as temp
307 tstfsz menupos 307 tstfsz menupos
316 ; reset deco data 316 ; reset deco data
317 SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration ; copy surface air pressure to deco routine 317 SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration ; copy surface air pressure to deco routine
318 call deco_clear_tissue ; Reset Decodata 318 call deco_clear_tissue ; Reset Decodata
319 call deco_calc_desaturation_time ; calculate desaturation time 319 call deco_calc_desaturation_time ; calculate desaturation time
320 call deco_clear_CNS_fraction ; clear CNS 320 call deco_clear_CNS_fraction ; clear CNS
321 movlb b'00000001' ; select ram bank 1
321 clrf nofly_time+0 ; Reset NoFly 322 clrf nofly_time+0 ; Reset NoFly
322 clrf nofly_time+1 ; Reset NoFly 323 clrf nofly_time+1 ; Reset NoFly
323 bcf nofly_active ; Clear flag 324 bcf nofly_active ; Clear flag
324 325
325 ; reset gases 326 ; reset gases