diff code_part1/OSTC_code_asm_part1/divemode.asm @ 180:8aced3c7590c

store gf_hi and gf_lo in logbook
author Heinrichsweikamp
date Sun, 06 Feb 2011 10:16:03 +0100
parents 77ab44108c07
children f15e804ff67f
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Feb 06 09:37:07 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Feb 06 10:16:03 2011 +0100
@@ -1218,8 +1218,12 @@
 	movf	EEDATA,W
 	call	write_external_eeprom	; Store Salinity to Dive
 	
-	movlw	d'0'		; Spare
-	call	write_external_eeprom
+	GETCUSTOM8	d'33'				; GF_hi
+	movwf	temp1
+	swapf	temp1,F					; GF_hi -> Bit7-4
+	GETCUSTOM8	d'32'				; GF_lo
+	addwf	temp1,W					; Add GF_lo -> Bit 3-0
+	call	write_external_eeprom	; Stores GF_hi and GF_lo
 
 	movlw	0xFB						; Header stop
 	call	write_external_eeprom