Mercurial > public > hwos_code
comparison src/logbook.asm @ 25:f65d070a5b76
fix imperial units in logbook
author | heinrichsweikamp |
---|---|
date | Tue, 09 Jul 2013 11:33:18 +0200 |
parents | 11d4fc797f74 |
children | ec4d8503ec45 |
comparison
equal
deleted
inserted
replaced
24:f51caad821b4 | 25:f65d070a5b76 |
---|---|
520 TSTOSS opt_units ; 0=Meters, 1=Feets | 520 TSTOSS opt_units ; 0=Meters, 1=Feets |
521 bra display_profile_offset4_metric | 521 bra display_profile_offset4_metric |
522 ;display_profile_offset4_imperial: | 522 ;display_profile_offset4_imperial: |
523 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | 523 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet |
524 PUTC ' ' | 524 PUTC ' ' |
525 bsf ignore_digit4 | 525 bcf leftbind |
526 movlw d'1' | 526 output_16_3 |
527 movff WREG,ignore_digits | |
528 bsf leftbind | |
529 output_16 ; full feet | |
530 STRCAT_TEXT_PRINT tFeets | 527 STRCAT_TEXT_PRINT tFeets |
531 bra display_profile_offset4_common | 528 bra display_profile_offset4_common |
532 | 529 |
533 display_profile_offset4_metric: | 530 display_profile_offset4_metric: |
534 bsf leftbind | 531 bsf leftbind |
1346 TSTOSS opt_units ; 0=Meters, 1=Feets | 1343 TSTOSS opt_units ; 0=Meters, 1=Feets |
1347 bra display_listdive2_metric | 1344 bra display_listdive2_metric |
1348 ;display_listdive2_imperial: | 1345 ;display_listdive2_imperial: |
1349 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | 1346 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet |
1350 PUTC ' ' | 1347 PUTC ' ' |
1351 bsf ignore_digit4 | 1348 bcf leftbind |
1352 movlw d'1' | 1349 output_16_3 |
1353 movff WREG,ignore_digits | |
1354 bcf leftbind | |
1355 output_16 ; full feet | |
1356 STRCAT_TEXT tFeets1 | 1350 STRCAT_TEXT tFeets1 |
1357 bra display_listdive3 | 1351 bra display_listdive3 |
1358 | 1352 |
1359 display_listdive2_metric: | 1353 display_listdive2_metric: |
1360 bsf ignore_digit5 ; no cm... | 1354 bsf ignore_digit5 ; no cm... |