Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 556:880e98ecf1ea
don't show normal ppO2 in pSCR mode
author | heinrichsweikamp |
---|---|
date | Tue, 14 Feb 2012 20:39:00 +0100 |
parents | 44e9b961f156 |
children | c84ea647ff58 |
comparison
equal
deleted
inserted
replaced
555:43296991c283 | 556:880e98ecf1ea |
---|---|
1144 movff WREG,letter+5 ; collision with sat graphs | 1144 movff WREG,letter+5 ; collision with sat graphs |
1145 call word_processor | 1145 call word_processor |
1146 return | 1146 return |
1147 | 1147 |
1148 PLED_show_ppO2: ; Show ppO2 (ppO2 stored in xC) | 1148 PLED_show_ppO2: ; Show ppO2 (ppO2 stored in xC) |
1149 GETCUSTOM8 d'61' ; Show pSCR ppO2? | |
1150 decfsz WREG,F ; WREG=1? | |
1151 bra PLED_show_ppO2a ; No | |
1152 return ; Do not display ppO2 in pSCR Mode | |
1153 | |
1154 PLED_show_ppO2a: | |
1149 ostc_debug 't' ; Sends debug-information to screen if debugmode active | 1155 ostc_debug 't' ; Sends debug-information to screen if debugmode active |
1150 WIN_TOP .117 | 1156 WIN_TOP .117 |
1151 WIN_LEFT .0 | 1157 WIN_LEFT .0 |
1152 WIN_FONT FT_SMALL | 1158 WIN_FONT FT_SMALL |
1153 PLED_color_code warn_ppo2 ; Color-code output (ppO2 stored in xC) | 1159 PLED_color_code warn_ppo2 ; Color-code output (ppO2 stored in xC) |
3472 WIN_LEFT .160-.63 ; 9 chars aligned right. | 3478 WIN_LEFT .160-.63 ; 9 chars aligned right. |
3473 WIN_TOP .170 | 3479 WIN_TOP .170 |
3474 call PLED_divemask_color ; Set Color for Divemode mask | 3480 call PLED_divemask_color ; Set Color for Divemode mask |
3475 lfsr FSR2,letter | 3481 lfsr FSR2,letter |
3476 OUTPUTTEXTH .266 ; "pSCR Info" | 3482 OUTPUTTEXTH .266 ; "pSCR Info" |
3477 call word_processor; pCCR | 3483 call word_processor ; pCCR |
3478 | 3484 |
3479 movff char_I_O2_ratio,WREG | 3485 movff char_I_O2_ratio,WREG |
3480 sublw .100 ; 100-char_I_O2_ratio -> WREG | 3486 sublw .100 ; 100-char_I_O2_ratio -> WREG |
3481 mullw .10 ; (100-char_I_O2_ratio)*10 -> PROD:2 | 3487 mullw .10 ; (100-char_I_O2_ratio)*10 -> PROD:2 |
3482 movff PRODL,xA+0 | 3488 movff PRODL,xA+0 |