diff code_part1/OSTC_code_asm_part1/divemode.asm @ 373:8781d1cf96d8 64kByte Logbook

added GF_hi, GF_lo and deco model to dive header
author Heinrichsweikamp
date Fri, 10 Jun 2011 17:47:52 +0200
parents 584741726190
children 6ee9c849ad92
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Fri Jun 10 13:59:10 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Fri Jun 10 17:47:52 2011 +0200
@@ -1345,12 +1345,14 @@
 	movff	total_divetime_seconds+1,WREG	; Total dive time (Regardless of CF01)
 	call	write_external_eeprom
 
-	clrf	WREG
-	call	write_external_eeprom			; Spare6
-	clrf	WREG
-	call	write_external_eeprom			; Spare5
-	clrf	WREG
-	call	write_external_eeprom			; Spare4
+	GETCUSTOM8	d'32'						; GF_lo
+	call	write_external_eeprom
+	GETCUSTOM8	d'33'						; GF_hi
+	call	write_external_eeprom
+	read_int_eeprom d'34'					; Read deco modell
+	movf	EEDATA,W
+	call	write_external_eeprom
+
 	clrf	WREG
 	call	write_external_eeprom			; Spare3
 	clrf	WREG