comparison src/ghostwriter.asm @ 389:9175429bdeba

CHANGE: Logbook now shows end-of-dive date and time for dives made with firmware <1.92 indicated by an icon in the logbook CHANGE: Logbook shows start-of-dive date and time for dives made with firmware >=1.92 BUGFIX: Text alignment in logbook
author heinrichsweikamp
date Tue, 27 Oct 2015 13:45:10 +0100
parents 62c7af4795b0
children 23b58c4bc6aa
comparison
equal deleted inserted replaced
388:d8e2cf055fc3 389:9175429bdeba
444 movf ext_flash_dive_counter+1,W 444 movf ext_flash_dive_counter+1,W
445 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 445 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
446 movf ext_flash_dive_counter+2,W 446 movf ext_flash_dive_counter+2,W
447 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 447 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
448 448
449 movf year,W ; Date 449 movff start_year,WREG ; Date
450 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 450 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
451 movf month,W 451 movff start_month,WREG
452 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 452 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
453 movf day,W 453 movff start_day,WREG
454 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 454 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
455 movf hours,W ; End of dive time 455 movff start_hours,WREG ; Start of dive time
456 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 456 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
457 movf mins,W 457 movff start_mins,WREG
458 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 458 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
459 459
460 btfss FLAG_apnoe_mode ; Store apnoe max or normal max (Which is only max from the last descent) 460 btfss FLAG_apnoe_mode ; Store apnoe max or normal max (Which is only max from the last descent)
461 bra end_dive1 ; Store normal depth 461 bra end_dive1 ; Store normal depth
462 462