comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 375:84a1762de6ab 64kByte Logbook

show saturation multiplier in logbook
author heinrichsweikamp
date Sun, 12 Jun 2011 16:18:22 +0200
parents 6ee9c849ad92
children ed26990716fe
comparison
equal deleted inserted replaced
374:6ee9c849ad92 375:84a1762de6ab
792 GETCUSTOM8 d'24' 792 GETCUSTOM8 d'24'
793 movwf divisor_ppo2 ; Reload divisor from CF 793 movwf divisor_ppo2 ; Reload divisor from CF
794 return 794 return
795 795
796 store_dive_gf: 796 store_dive_gf:
797 movff char_O_relative_gradient_GF,WREG; gradient factor relative (GF model) 797 movff char_O_gradient_factor,WREG ; gradient factor absolute
798 movff char_I_deco_model,lo
799 decfsz lo,F ; jump over next line if char_I_deco_model == 1
800 movff char_O_gradient_factor,WREG ; gradient factor absolute (Non-GF model)
801 call write_external_eeprom 798 call write_external_eeprom
802 GETCUSTOM8 d'23' 799 GETCUSTOM8 d'23'
803 movwf divisor_gf ; Reload divisor from CF 800 movwf divisor_gf ; Reload divisor from CF
804 return 801 return
805 802
1344 movff total_divetime_seconds+0,WREG ; Total dive time (Regardless of CF01) 1341 movff total_divetime_seconds+0,WREG ; Total dive time (Regardless of CF01)
1345 call write_external_eeprom 1342 call write_external_eeprom
1346 movff total_divetime_seconds+1,WREG ; Total dive time (Regardless of CF01) 1343 movff total_divetime_seconds+1,WREG ; Total dive time (Regardless of CF01)
1347 call write_external_eeprom 1344 call write_external_eeprom
1348 1345
1349 1346 movlw d'32' ; GF_lo
1350
1351 GETCUSTOM8 d'32' ; GF_lo -> WREG
1352 movff char_I_deco_model,lo 1347 movff char_I_deco_model,lo
1353 decfsz lo,F ; jump over next line if char_I_deco_model == 1 1348 decfsz lo,F ; jump over next line if char_I_deco_model == 1
1354 movlw d'90' ; overwrite for non-gf modes 1349 movlw d'11' ; Saturation Multiplier
1350 call getcustom8_1 ; Get Custom function #WREG
1355 call write_external_eeprom ; write WREG into external memory 1351 call write_external_eeprom ; write WREG into external memory
1356 GETCUSTOM8 d'33' ; GF_hi -> WREG 1352
1353 movlw d'33' ; GF_hi
1357 movff char_I_deco_model,lo 1354 movff char_I_deco_model,lo
1358 decfsz lo,F ; jump over next line if char_I_deco_model == 1 1355 decfsz lo,F ; jump over next line if char_I_deco_model == 1
1359 movlw d'90' ; overwrite for non-gf modes 1356 movlw d'12' ; Desaturation Multiplier
1357 call getcustom8_1 ; Get Custom function #WREG
1360 call write_external_eeprom ; write WREG into external memory 1358 call write_external_eeprom ; write WREG into external memory
1359
1361 read_int_eeprom d'34' ; Read deco modell 1360 read_int_eeprom d'34' ; Read deco modell
1362 movf EEDATA,W 1361 movf EEDATA,W
1363 call write_external_eeprom ; write WREG into external memory 1362 call write_external_eeprom ; write WREG into external memory
1364 1363
1365 clrf WREG 1364 clrf WREG