diff code_part1/OSTC_code_asm_part1/divemode.asm @ 630:6526a5b058b7

Fill char_O_deco_time_for_log array with stop times
author heinrichsweikamp
date Fri, 07 Sep 2012 14:48:31 +0200
parents 8d2dc109ecfc
children 6cbdfd1b9dcf
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Tue Aug 28 19:01:41 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Fri Sep 07 14:48:31 2012 +0200
@@ -715,7 +715,7 @@
 check_extended4:
 	decfsz	divisor_deco_debug,W; Check divisor
 	bra		check_extended5		
-	movlw	d'9'				; Information length	
+	movlw	d'15'				; Information length
 	addwf	ProfileFlagByte,F	; add to ProfileFlagByte
 check_extended5:
 	decfsz	divisor_cns,W		; Check divisor
@@ -849,7 +849,36 @@
 	return
 
 store_dive_decodebug:
-	; do something here
+    movff   char_O_deco_time_for_log+.0,WREG     ; 3m
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.1,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.2,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.3,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.4,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.5,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.6,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.7,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.8,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.9,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.10,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.11,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.12,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.13,WREG
+    call	write_external_eeprom
+    movff   char_O_deco_time_for_log+.14,WREG   ; 45m
+    call	write_external_eeprom
 	GETCUSTOM8	d'25'
 	movwf	divisor_deco_debug			; Reload divisor from CF
 	return
@@ -1441,7 +1470,7 @@
 	addwf	temp1,W		; copy to bits 0-3, result in WREG
 	call	write_external_eeprom
 
-	movlw	d'0'		; information size Decodebug
+	movlw	d'15'		; information size Decodebug
 	movwf	temp1		; copy to bits 0-3
 	swapf	temp1,F		; swap nibbels 0-3 with 4-7
 	GETCUSTOM8	d'25'	; Divisor Decodebug