Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 168:494587193f5d
Use 16bits for TTS sum.
+ Display in divemode as 16bits.
+ Display in decoplanning as 16bits.
author | JeanDo |
---|---|
date | Tue, 25 Jan 2011 01:02:35 +0100 |
parents | cb055a7d75f3 |
children | e26f49674956 |
comparison
equal
deleted
inserted
replaced
167:cb055a7d75f3 | 168:494587193f5d |
---|---|
468 | 468 |
469 ;PLED_display_deko1: | 469 ;PLED_display_deko1: |
470 ostc_debug 'x' ; Sends debug-information to screen if debugmode active | 470 ostc_debug 'x' ; Sends debug-information to screen if debugmode active |
471 | 471 |
472 WIN_TOP .136 | 472 WIN_TOP .136 |
473 WIN_LEFT .119 | 473 WIN_LEFT .140 - 6*7 - 4 ; let space for sign + 5 digits + ' |
474 WIN_FONT FT_MEDIUM | 474 WIN_FONT FT_MEDIUM |
475 WIN_INVERT .0 ; Init new Wordprocessor | 475 WIN_INVERT .0 ; Init new Wordprocessor |
476 call PLED_standard_color | 476 |
477 lfsr FSR2,letter | 477 call PLED_standard_color |
478 movff char_O_ascenttime,lo ; complete ascend time | 478 lfsr FSR2,letter |
479 movlw d'199' ; limit display of total ascend time to 99mins.... | 479 movff int_O_ascenttime+0,lo ; complete ascend time |
480 cpfslt lo ; skip if 199 (WREG) > lo | 480 movff int_O_ascenttime+1,hi ; on 16bits |
481 movwf lo | 481 bcf leftbind |
482 bcf leftbind | 482 output_16 |
483 output_8 | |
484 STRCAT_PRINT "'" | 483 STRCAT_PRINT "'" |
485 | 484 |
486 PLED_display_deko1: | 485 PLED_display_deko1: |
487 movff char_O_gradient_factor,lo ; gradient factor | 486 movff char_O_gradient_factor,lo ; gradient factor |
488 GETCUSTOM8 d'8' ; threshold for display | 487 GETCUSTOM8 d'8' ; threshold for display |