comparison src/ghostwriter.asm @ 601:08a0162d3ca1

Fix false CNS readings in logbook
author heinrichsweikamp
date Tue, 14 Aug 2018 11:01:47 +0200
parents b455b31ce022
children ca4556fb60b9
comparison
equal deleted inserted replaced
600:cb59872ad53d 601:08a0162d3ca1
277 277
278 store_dive_cns: 278 store_dive_cns:
279 movff int_O_CNS_fraction+0,WREG 279 movff int_O_CNS_fraction+0,WREG
280 rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash 280 rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash
281 movff int_O_CNS_fraction+1,WREG 281 movff int_O_CNS_fraction+1,WREG
282 bcf WREG,int_warning_flag ; clear warning flag
283 bcf WREG,int_attention_flag ; clear attention flag
282 rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash 284 rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash
283 movlw div_cns 285 movlw div_cns
284 movwf divisor_cns ; Reload divisor from CF 286 movwf divisor_cns ; Reload divisor from CF
285 return 287 return
286 288
721 rcall ghostwrite_byte_header ; Store Salinity to Dive 723 rcall ghostwrite_byte_header ; Store Salinity to Dive
722 724
723 movff int_O_CNS_fraction+0,WREG ; copy into bank1 725 movff int_O_CNS_fraction+0,WREG ; copy into bank1
724 rcall ghostwrite_byte_header ; Stores CNS% 726 rcall ghostwrite_byte_header ; Stores CNS%
725 movff int_O_CNS_fraction+1,WREG ; copy into bank1 727 movff int_O_CNS_fraction+1,WREG ; copy into bank1
728 bcf WREG,int_warning_flag ; clear warning flag
729 bcf WREG,int_attention_flag ; clear attention flag
726 rcall ghostwrite_byte_header ; Stores CNS% 730 rcall ghostwrite_byte_header ; Stores CNS%
727 731
728 movff avg_rel_pressure_total+0,WREG ; Average Depth 732 movff avg_rel_pressure_total+0,WREG ; Average Depth
729 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 733 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
730 movff avg_rel_pressure_total+1,WREG ; Average Depth 734 movff avg_rel_pressure_total+1,WREG ; Average Depth