comparison 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
comparison
equal deleted inserted replaced
179:77ab44108c07 180:8aced3c7590c
1216 1216
1217 read_int_eeprom d'26' ; Read Salinity from EEPROM 1217 read_int_eeprom d'26' ; Read Salinity from EEPROM
1218 movf EEDATA,W 1218 movf EEDATA,W
1219 call write_external_eeprom ; Store Salinity to Dive 1219 call write_external_eeprom ; Store Salinity to Dive
1220 1220
1221 movlw d'0' ; Spare 1221 GETCUSTOM8 d'33' ; GF_hi
1222 call write_external_eeprom 1222 movwf temp1
1223 swapf temp1,F ; GF_hi -> Bit7-4
1224 GETCUSTOM8 d'32' ; GF_lo
1225 addwf temp1,W ; Add GF_lo -> Bit 3-0
1226 call write_external_eeprom ; Stores GF_hi and GF_lo
1223 1227
1224 movlw 0xFB ; Header stop 1228 movlw 0xFB ; Header stop
1225 call write_external_eeprom 1229 call write_external_eeprom
1226 movlw 0xFB 1230 movlw 0xFB
1227 call write_external_eeprom 1231 call write_external_eeprom