changeset 422:193520542496

fix ram banking in "Reset all"
author heinrichsweikamp
date Tue, 02 Aug 2011 11:59:36 +0200
parents af2894e5cda4
children 13ecc8a17e67
files code_part1/OSTC_code_asm_part1/menu_reset.asm
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm	Wed Jul 20 19:21:21 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm	Tue Aug 02 11:59:36 2011 +0200
@@ -299,7 +299,7 @@
   	clrf		nofly_time+0        	      	; Reset NoFly
   	clrf		nofly_time+1            	  	; Reset NoFly
 	bcf			nofly_active                	; Clear flag
-	goto	restart					; done. quit to surfmode
+	goto		restart							; done. quit to surfmode
 
 do_menu_reset_all:
 	call	PLED_confirmbox				; Returns WREG=0 for Cancel (Or Timeout) and WREG=1 for OK!
@@ -318,6 +318,7 @@
 	call		deco_clear_tissue			; Reset Decodata
 	call		deco_calc_desaturation_time	; calculate desaturation time
 	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