comparison src/logbook.asm @ 654:75e90cd0c2c3

hwOS sport 10.77 release
author heinrichsweikamp
date Thu, 14 Mar 2024 16:56:46 +0100
parents 070528a88715
children
comparison
equal deleted inserted replaced
653:8bcd138ab744 654:75e90cd0c2c3
2 ; 2 ;
3 ; File logbook.asm * combined next generation V3.12.2 3 ; File logbook.asm * combined next generation V3.12.2
4 ; 4 ;
5 ; Logbook 5 ; Logbook
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, heinrichs weikamp gmbh, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
9 ; HISTORY 9 ; HISTORY
10 ; 2011-11-12 : [mH] moving from OSTC code 10 ; 2011-11-12 : [mH] moving from OSTC code
11 ; 11 ;
12 ;============================================================================= 12 ;=============================================================================
391 ; also sets aux_flag in case the dive was done in a deco mode 391 ; also sets aux_flag in case the dive was done in a deco mode
392 392
393 ; show time 393 ; show time
394 WIN_SMALL logbook_time_column, logbook_time_row 394 WIN_SMALL logbook_time_column, logbook_time_row
395 MOVII header_buffer+index_time,mpr ; get time 395 MOVII header_buffer+index_time,mpr ; get time
396 TSTOSC opt_timeformat ; =1: Use 12h format
397 call TFT_convert_lo_into_12h_format ; converts lo (0-23h) into lo (1-12) with PM/AM flag in aux_flag
396 output_99x ; print hour 398 output_99x ; print hour
397 PUTC ':' ; print spacing ":" 399 PUTC ':' ; print spacing ":"
398 movff hi,lo ; print minute 400 movff hi,lo ; print minute
399 output_99x ; ... 401 output_99x ; ...
400 PRINT ; print buffer as 1st row of details to screen 402 PRINT ; print buffer as 1st row of details to screen
1588 WIN_SMALL .8,.193 ; select font and output position 1590 WIN_SMALL .8,.193 ; select font and output position
1589 MOVTT rtc_latched_year,mpr ; get computed end-of-dive date 1591 MOVTT rtc_latched_year,mpr ; get computed end-of-dive date
1590 call output_date_short ; print date (day and month) 1592 call output_date_short ; print date (day and month)
1591 STRCAT ".-" ; print spacing ".-" 1593 STRCAT ".-" ; print spacing ".-"
1592 MOVII rtc_latched_hour,mpr ; get computed end-of-dive time 1594 MOVII rtc_latched_hour,mpr ; get computed end-of-dive time
1595 TSTOSC opt_timeformat ; =1: Use 12h format
1596 call TFT_convert_lo_into_12h_format ; converts lo (0-23h) into lo (1-12) with PM/AM flag in aux_flag
1593 output_99x ; print hour 1597 output_99x ; print hour
1594 PUTC ':' ; print spacing ":" 1598 PUTC ':' ; print spacing ":"
1595 movff hi,lo ; print minute 1599 movff hi,lo ; print minute
1596 output_99x ; ... 1600 output_99x ; ...
1597 PRINT ; print buffer to screen 1601 PRINT ; print buffer to screen
1781 WIN_SMALL .59,.10 1785 WIN_SMALL .59,.10
1782 MOVTT header_buffer+index_date,mpr ; get date 1786 MOVTT header_buffer+index_date,mpr ; get date
1783 call output_date ; print date 1787 call output_date ; print date
1784 PUTC "-" ; print "-" 1788 PUTC "-" ; print "-"
1785 MOVII header_buffer+index_time,mpr ; get time 1789 MOVII header_buffer+index_time,mpr ; get time
1790 TSTOSC opt_timeformat ; =1: Use 12h format
1791 call TFT_convert_lo_into_12h_format ; converts lo (0-23h) into lo (1-12) with PM/AM flag in aux_flag
1786 output_99x ; print hour 1792 output_99x ; print hour
1787 PUTC ':' ; print spacing ":" 1793 PUTC ':' ; print spacing ":"
1788 movff hi,lo ; print minute 1794 movff hi,lo ; print minute
1789 output_99x ; ... 1795 output_99x ; ...
1790 PRINT ; dump to screen 1796 PRINT ; dump to screen