diff code_part1/OSTC_code_asm_part1/menu_reset.asm @ 412:b2c9cc018671

small cleanup
author heinrichsweikamp
date Wed, 13 Jul 2011 11:12:43 +0200
parents e6e1b89b7c3e
children 193520542496
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm	Tue Jul 12 20:21:57 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm	Wed Jul 13 11:12:43 2011 +0200
@@ -293,11 +293,12 @@
 
     SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration	; copy surface air pressure to deco routine
 	call		deco_clear_tissue			; Reset Decodata
-	movlb		b'00000001'						; select ram bank 1
 	call		deco_calc_desaturation_time	; calculate desaturation time
-	movlb		b'00000001'						; select ram bank 1
 	call		deco_clear_CNS_fraction			; clear CNS
 	movlb		b'00000001'						; select ram bank 1
+  	clrf		nofly_time+0        	      	; Reset NoFly
+  	clrf		nofly_time+1            	  	; Reset NoFly
+	bcf			nofly_active                	; Clear flag
 	goto	restart					; done. quit to surfmode
 
 do_menu_reset_all:
@@ -315,11 +316,11 @@
 ; reset deco data
     SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration	; copy surface air pressure to deco routine
 	call		deco_clear_tissue			; Reset Decodata
-	movlb		b'00000001'						; select ram bank 1
 	call		deco_calc_desaturation_time	; calculate desaturation time
-	movlb		b'00000001'						; select ram bank 1
 	call		deco_clear_CNS_fraction			; clear CNS
-	movlb		b'00000001'						; select ram bank 1
+  	clrf		nofly_time+0    	          	; Reset NoFly
+  	clrf		nofly_time+1	              	; Reset NoFly
+	bcf			nofly_active                	; Clear flag
 
 ; reset gases
 	clrf	EEADRH					; EEPROM BANK 0 !