Mercurial > public > hwos_code
comparison src/gaslist.asm @ 225:31088352ee32
BUGFIX: Show dives with >999mins divetime correctly
author | heinrichsweikamp |
---|---|
date | Sun, 01 Feb 2015 18:49:24 +0100 |
parents | e79bc535ef9e |
children | 653a3ab08062 |
comparison
equal
deleted
inserted
replaced
224:5a4801918be9 | 225:31088352ee32 |
---|---|
245 mullw .100 ; convert meters to mbar | 245 mullw .100 ; convert meters to mbar |
246 movff PRODL,lo | 246 movff PRODL,lo |
247 movff PRODH,hi | 247 movff PRODH,hi |
248 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | 248 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet |
249 bsf leftbind | 249 bsf leftbind |
250 output_16_3 | 250 output_16_3 ; limit to 999 and display only (0-999) |
251 STRCAT_TEXT tFeets ; "ft" | 251 STRCAT_TEXT tFeets ; "ft" |
252 return | 252 return |
253 | 253 |
254 gaslist_strcat_3_metric: | 254 gaslist_strcat_3_metric: |
255 btfsc ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") | 255 btfsc ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") |
627 mullw .100 ; convert meters to mbar | 627 mullw .100 ; convert meters to mbar |
628 movff PRODL,lo | 628 movff PRODL,lo |
629 movff PRODH,hi | 629 movff PRODH,hi |
630 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | 630 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet |
631 bsf leftbind | 631 bsf leftbind |
632 output_16_3 | 632 output_16_3 ; limit to 999 and display only (0-999) |
633 STRCAT_TEXT tFeets ; "ft" | 633 STRCAT_TEXT tFeets ; "ft" |
634 bra gaslist_MOD_common | 634 bra gaslist_MOD_common |
635 gaslist_MOD_metric: | 635 gaslist_MOD_metric: |
636 output_8 | 636 output_8 |
637 STRCAT_TEXT tMeters ; m | 637 STRCAT_TEXT tMeters ; m |
669 mullw .100 ; convert meters to mbar | 669 mullw .100 ; convert meters to mbar |
670 movff PRODL,lo | 670 movff PRODL,lo |
671 movff PRODH,hi | 671 movff PRODH,hi |
672 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | 672 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet |
673 bsf leftbind | 673 bsf leftbind |
674 output_16_3 | 674 output_16_3 ; limit to 999 and display only (0-999) |
675 STRCAT_TEXT tFeets ; "ft" | 675 STRCAT_TEXT tFeets ; "ft" |
676 return | 676 return |
677 gaslist_END_metric: | 677 gaslist_END_metric: |
678 output_8 | 678 output_8 |
679 STRCAT_TEXT tMeters ; m | 679 STRCAT_TEXT tMeters ; m |