Mercurial > public > hwos_code
comparison src/logbook.asm @ 646:5b7fe7777425
3.16 release
author | heinrichs weikamp |
---|---|
date | Thu, 14 Oct 2021 12:03:24 +0200 |
parents | 8c1f1f334275 |
children | 75e90cd0c2c3 |
comparison
equal
deleted
inserted
replaced
642:a9a0188091e4 | 646:5b7fe7777425 |
---|---|
1573 | 1573 |
1574 ; draw the graphics | 1574 ; draw the graphics |
1575 call TFT_surf_cv_tissues | 1575 call TFT_surf_cv_tissues |
1576 | 1576 |
1577 ; calculate time/date of the end of the dive | 1577 ; calculate time/date of the end of the dive |
1578 MOVTT header_buffer+index_date, rtc_latched_year ; get start of the dive - year, month, day | 1578 MOVTT header_buffer+index_date,rtc_latched_year ; get start of the dive - year, month, day |
1579 MOVII header_buffer+index_time, rtc_latched_hour ; get start of the dive - hour, minute | 1579 MOVII header_buffer+index_time,rtc_latched_hour ; get start of the dive - hour, minute |
1580 MOVCC header_buffer+index_divetime+2,rtc_latched_secs ; get duration of the dive - seconds | 1580 MOVII header_buffer+index_total_seconds,mpr ; get total dive duration in seconds into hi:lo |
1581 MOVII header_buffer+index_divetime+0,mpr ; get duration of the dive - minutes | 1581 call convert_time ; convert seconds (in hi:lo) into minutes (in up:hi) and seconds (in lo) |
1582 call rtc_add_minutes ; add minutes in mpr to time/date in rtc_latched | 1582 MOVCC lo,rtc_latched_secs ; set duration of the dive - seconds |
1583 | 1583 MOVCC hi,lo ; set duration of the dive - minutes, low byte |
1584 MOVCC up,hi ; set duration of the dive - minutes, high byte | |
1585 call rtc_add_minutes ; add minutes in hi:lo to time/date in rtc_latched | |
1586 | |
1584 ; print time/date of the end of the dive | 1587 ; print time/date of the end of the dive |
1585 WIN_SMALL .8,.193 ; select font and output position | 1588 WIN_SMALL .8,.193 ; select font and output position |
1586 MOVTT rtc_latched_year,mpr ; get computed end-of-dive date | 1589 MOVTT rtc_latched_year,mpr ; get computed end-of-dive date |
1587 call output_date_short ; print date (day and month) | 1590 call output_date_short ; print date (day and month) |
1588 STRCAT ".-" ; print spacing ".-" | 1591 STRCAT ".-" ; print spacing ".-" |