diff code_part1/OSTC_code_asm_part1/divemode.asm @ 313:11be2470b9eb @5 variant

Fix @5 preventing main computation New display style New display deco_state in debug mode.
author JeanDo
date Tue, 03 May 2011 15:54:09 +0200
parents b7e4e74c0e17
children 4159c31abe31
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Tue May 03 00:52:42 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Tue May 03 15:54:09 2011 +0200
@@ -456,6 +456,11 @@
 	return
 
  	ostc_debug	'B'		; Sends debug-information to screen if debugmode active
+    ; Send nes state to screen, if debugmode active	
+	movff   char_O_deco_status,WREG ; Status before call
+	addlw   '0'                     ; Convert to ascii char
+	call    ostc_debug1             ; and send.
+
 	call	divemode_prepare_flags_for_deco
 	clrf	WREG
 	movff	WREG,char_I_step_is_1min    ; Force 2 second deco mode
@@ -531,7 +536,7 @@
     btfss   tts_extra_time              ; Is @5 displayed ?
 	return                              ; No: don't compute it.
 	
-	dcfsnz  apnoe_mins                  ; Reached count-down ?
+	decfsz  apnoe_mins                  ; Reached count-down ?
 	return                              ; No: don't compute yet.
 	
 	movlw   .6
@@ -540,6 +545,7 @@
     movlw   .2                          ; Restart countdown.
     movwf   apnoe_mins
     return
+    
 ;-----------------------------------------------------------------------------
 
 divemode_prepare_flags_for_deco: