Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 337:508d7fb98b34
cleanup menu, add "Auto SP" option (Not working yet), minor layout change in compass menu
author | heinrichsweikamp |
---|---|
date | Sun, 28 Jun 2015 13:58:00 +0200 |
parents | 14b466f66a7f |
children | 692903c50788 |
comparison
equal
deleted
inserted
replaced
336:1318c6cad41b | 337:508d7fb98b34 |
---|---|
2330 clrf hi | 2330 clrf hi |
2331 bsf leftbind | 2331 bsf leftbind |
2332 output_16dp d'3' | 2332 output_16dp d'3' |
2333 bcf leftbind | 2333 bcf leftbind |
2334 STRCAT_TEXT tbar | 2334 STRCAT_TEXT tbar |
2335 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor | 2335 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
2336 bra $+4 | 2336 sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
2337 bnz $+4 ; No, skip | |
2337 PUTC "*" | 2338 PUTC "*" |
2338 STRCAT_PRINT "" | 2339 STRCAT_PRINT "" |
2339 return | 2340 return |
2340 | 2341 |
2341 TFT_active_setpoint: ; Show setpoint | 2342 TFT_active_setpoint: ; Show setpoint |
2360 clrf hi | 2361 clrf hi |
2361 bsf leftbind | 2362 bsf leftbind |
2362 output_16dp d'3' | 2363 output_16dp d'3' |
2363 bcf leftbind | 2364 bcf leftbind |
2364 STRCAT_TEXT tbar | 2365 STRCAT_TEXT tbar |
2365 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor | 2366 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
2366 bra $+4 | 2367 sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
2368 bnz $+4 ; No, skip | |
2367 PUTC "*" | 2369 PUTC "*" |
2368 STRCAT_PRINT "" | 2370 STRCAT_PRINT "" |
2369 bcf win_invert ; Reset invert flag | 2371 bcf win_invert ; Reset invert flag |
2370 | 2372 |
2371 TFT_active_setpoint_diluent: | 2373 TFT_active_setpoint_diluent: |
2459 bra TFT_display_decotype_surface3 | 2461 bra TFT_display_decotype_surface3 |
2460 STRCAT_TEXT_PRINT tDvCC ; CC | 2462 STRCAT_TEXT_PRINT tDvCC ; CC |
2461 call TFT_standard_color | 2463 call TFT_standard_color |
2462 WIN_TINY surf_decotype_column+.18,surf_decotype_row+.12 | 2464 WIN_TINY surf_decotype_column+.18,surf_decotype_row+.12 |
2463 | 2465 |
2464 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor | 2466 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
2465 bra TFT_display_decotype_cc_fixed | 2467 bra TFT_display_decotype_cc_fixed |
2466 ; Sensor mode | 2468 ; Sensor mode or Auto |
2469 movff opt_ccr_mode,WREG | |
2470 sublw .2 | |
2471 bz TFT_display_decotype_cc_auto | |
2467 STRCPY_TEXT tCCRModeSensor ; Sensor | 2472 STRCPY_TEXT tCCRModeSensor ; Sensor |
2468 bra TFT_display_decotype_cc_common | 2473 bra TFT_display_decotype_cc_common |
2474 TFT_display_decotype_cc_auto: | |
2475 STRCPY_TEXT tCCRModeAutoSP ; Auto SP | |
2476 bra TFT_display_decotype_cc_common | |
2469 TFT_display_decotype_cc_fixed: | 2477 TFT_display_decotype_cc_fixed: |
2470 STRCPY_TEXT tCCRModeFixedSP ; Fixed | 2478 STRCPY_TEXT tCCRModeFixedSP ; Fixed SP |
2471 TFT_display_decotype_cc_common: | 2479 TFT_display_decotype_cc_common: |
2472 STRCAT_PRINT "" | 2480 STRCAT_PRINT "" |
2473 bra TFT_display_decotype_exit | 2481 bra TFT_display_decotype_exit |
2482 | |
2474 TFT_display_decotype_surface3: | 2483 TFT_display_decotype_surface3: |
2475 decfsz lo,F | 2484 decfsz lo,F |
2476 bra TFT_display_decotype_surface4 | 2485 bra TFT_display_decotype_surface4 |
2477 TFT_display_decotype_surface3_1: | 2486 TFT_display_decotype_surface3_1: |
2478 STRCAT_TEXT_PRINT tDvGauge ; Gauge | 2487 STRCAT_TEXT_PRINT tDvGauge ; Gauge |
4119 clrf xB+1 | 4128 clrf xB+1 |
4120 call mult16x16 ; char_I_O2_ratio * p_amb/10 | 4129 call mult16x16 ; char_I_O2_ratio * p_amb/10 |
4121 | 4130 |
4122 call TFT_standard_color | 4131 call TFT_standard_color |
4123 TFT_color_code warn_ppo2 ; Color-code output (ppO2 stored in xC) | 4132 TFT_color_code warn_ppo2 ; Color-code output (ppO2 stored in xC) |
4124 WIN_STD dm_custom_ceiling_ppo2_val_col, dm_custom_ceiling_value_row | 4133 WIN_MEDIUM dm_custom_ceiling_ppo2_val_col, dm_custom_ceiling_value_row |
4125 ; hijacking neg_flag_velocity to know where the value is displayed | 4134 ; hijacking neg_flag_velocity to know where the value is displayed |
4126 bsf neg_flag_velocity | 4135 bsf neg_flag_velocity |
4127 bra TFT_display_ppo2_com | 4136 bra TFT_display_ppo2_com |
4128 | 4137 |
4129 global TFT_display_ppo2 | 4138 global TFT_display_ppo2 |
4169 output_16 | 4178 output_16 |
4170 bcf leftbind | 4179 bcf leftbind |
4171 PUTC " " | 4180 PUTC " " |
4172 return ; No "_PRINT" here... | 4181 return ; No "_PRINT" here... |
4173 | 4182 |
4174 global TFT_VSImenu_dynamictitle | |
4175 TFT_VSImenu_dynamictitle: | |
4176 STRCPY_TEXT tVSItext1 | |
4177 PUTC " " | |
4178 return ; No "_PRINT" here... | |
4179 | |
4180 | |
4181 global adjust_depth_with_salinity | 4183 global adjust_depth_with_salinity |
4182 adjust_depth_with_salinity: ; computes salinity setting into lo:hi [mbar] | 4184 adjust_depth_with_salinity: ; computes salinity setting into lo:hi [mbar] |
4183 btfsc simulatormode_active ; Do apply salinity in Simulatormode | 4185 btfsc simulatormode_active ; Do apply salinity in Simulatormode |
4184 return | 4186 return |
4185 | 4187 |