Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 253:3a4096f32526
show CNS in logbook for all dives made with V1.84beta and later
author | heinrichsweikamp |
---|---|
date | Sun, 03 Apr 2011 11:46:06 +0200 |
parents | f0cba9cff25c |
children | 8f20e8948b97 |
comparison
equal
deleted
inserted
replaced
252:8b252ff2eded | 253:3a4096f32526 |
---|---|
1231 call write_external_eeprom | 1231 call write_external_eeprom |
1232 | 1232 |
1233 read_int_eeprom d'26' ; Read Salinity from EEPROM | 1233 read_int_eeprom d'26' ; Read Salinity from EEPROM |
1234 movf EEDATA,W | 1234 movf EEDATA,W |
1235 call write_external_eeprom ; Store Salinity to Dive | 1235 call write_external_eeprom ; Store Salinity to Dive |
1236 | 1236 |
1237 GETCUSTOM8 d'33' ; GF_hi | 1237 movff char_O_CNS_fraction,WREG ; copy into bank1 |
1238 movwf temp1 | 1238 call write_external_eeprom ; Stores CNS% |
1239 swapf temp1,F ; GF_hi -> Bit7-4 | |
1240 GETCUSTOM8 d'32' ; GF_lo | |
1241 addwf temp1,W ; Add GF_lo -> Bit 3-0 | |
1242 call write_external_eeprom ; Stores GF_hi and GF_lo | |
1243 | 1239 |
1244 movlw 0xFB ; Header stop | 1240 movlw 0xFB ; Header stop |
1245 call write_external_eeprom | 1241 call write_external_eeprom |
1246 movlw 0xFB | 1242 movlw 0xFB |
1247 call write_external_eeprom | 1243 call write_external_eeprom |