Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 123:d076e9c02438
add ceiling display
author | heinrichsweikamp |
---|---|
date | Sun, 29 Jun 2014 13:40:59 +0200 |
parents | 3e84e2a64188 |
children | 40ff64d60054 |
comparison
equal
deleted
inserted
replaced
122:3e84e2a64188 | 123:d076e9c02438 |
---|---|
916 bcf leftbind | 916 bcf leftbind |
917 bcf ignore_digit5 | 917 bcf ignore_digit5 |
918 STRCAT_PRINT "" | 918 STRCAT_PRINT "" |
919 return | 919 return |
920 | 920 |
921 global TFT_ceiling_mask ; The ceiling mask | |
922 TFT_ceiling_mask: | |
923 call TFT_divemask_color | |
924 WIN_TINY dive_ceiling_text_column,dive_ceiling_text_row | |
925 STRCPY_TEXT_PRINT tCeiling | |
926 call TFT_standard_color | |
927 return | |
928 | |
929 global TFT_ceiling ; Ceiling | |
930 TFT_ceiling: | |
931 call TFT_standard_color | |
932 WIN_MEDIUM dive_ceiling_value_column,dive_ceiling_value_row | |
933 lfsr FSR2,buffer | |
934 movff int_O_ceiling+0,lo | |
935 movff int_O_ceiling+1,hi | |
936 call adjust_depth_with_salinity ; computes salinity setting into lo:hi [mbar] | |
937 bsf leftbind | |
938 TSTOSS opt_units ; 0=m, 1=ft | |
939 bra TFT_ceiling_metric | |
940 ;TFT_ceiling_imperial | |
941 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | |
942 output_16 ; yxz | |
943 bcf leftbind | |
944 STRCAT_PRINT " " | |
945 return | |
946 | |
947 TFT_ceiling_metric: | |
948 bsf ignore_digit5 ; no cm | |
949 output_16dp .3 ; yxz.a | |
950 bcf leftbind | |
951 bcf ignore_digit5 | |
952 STRCAT_PRINT " " | |
953 return | |
954 | |
921 global TFT_hud_mask ; The HUD mask | 955 global TFT_hud_mask ; The HUD mask |
922 TFT_hud_mask: | 956 TFT_hud_mask: |
923 ; The mask | |
924 call TFT_divemask_color | 957 call TFT_divemask_color |
925 WIN_TINY dive_custom_hud_column1,dive_custom_hud_row | 958 WIN_TINY dive_custom_hud_column1,dive_custom_hud_row |
926 STRCPY_TEXT_PRINT tDiveHudMask1 | 959 STRCPY_TEXT_PRINT tDiveHudMask1 |
927 WIN_TINY dive_custom_hud_column2,dive_custom_hud_row | 960 WIN_TINY dive_custom_hud_column2,dive_custom_hud_row |
928 STRCPY_TEXT_PRINT tDiveHudMask2 | 961 STRCPY_TEXT_PRINT tDiveHudMask2 |
931 call TFT_standard_color | 964 call TFT_standard_color |
932 return | 965 return |
933 | 966 |
934 global TFT_hud_voltages | 967 global TFT_hud_voltages |
935 TFT_hud_voltages: ; Show HUD details | 968 TFT_hud_voltages: ; Show HUD details |
936 call TFT_standard_color | |
937 WIN_SMALL .5,dive_hud_data_row | 969 WIN_SMALL .5,dive_hud_data_row |
938 movff o2_mv_sensor1+0,lo | 970 movff o2_mv_sensor1+0,lo |
939 movff o2_mv_sensor1+1,hi | 971 movff o2_mv_sensor1+1,hi |
940 lfsr FSR2,buffer | 972 lfsr FSR2,buffer |
941 bsf leftbind | 973 bsf leftbind |
2009 return | 2041 return |
2010 | 2042 |
2011 global TFT_debug_output | 2043 global TFT_debug_output |
2012 TFT_debug_output: | 2044 TFT_debug_output: |
2013 return | 2045 return |
2014 btfss c3_hardware | |
2015 return | |
2016 WIN_TINY .80,.0 | 2046 WIN_TINY .80,.0 |
2017 call TFT_standard_color | 2047 call TFT_standard_color |
2018 lfsr FSR2,buffer | 2048 lfsr FSR2,buffer |
2019 movff flag10,lo | 2049 movff int_O_ceiling+0,lo |
2020 output_8 | 2050 movff int_O_ceiling+1,hi |
2021 STRCAT_PRINT "" | |
2022 return | |
2023 | |
2024 WIN_TINY .110,.0 | |
2025 call TFT_standard_color | |
2026 lfsr FSR2,buffer | |
2027 movff o2_mv_sensor1+0,lo | |
2028 movff o2_mv_sensor1+1,hi | |
2029 output_16 | 2051 output_16 |
2030 STRCAT_PRINT "" | 2052 STRCAT_PRINT "" |
2031 | 2053 return |
2032 WIN_TINY .110,.15 | |
2033 lfsr FSR2,buffer | |
2034 movff o2_mv_sensor2+0,lo | |
2035 movff o2_mv_sensor2+1,hi | |
2036 output_16 | |
2037 STRCAT_PRINT "" | |
2038 | |
2039 WIN_TINY .110,.30 | |
2040 lfsr FSR2,buffer | |
2041 movff o2_mv_sensor3+0,lo | |
2042 movff o2_mv_sensor3+1,hi | |
2043 output_16 | |
2044 STRCAT_PRINT "" | |
2045 | |
2046 return | |
2047 | 2054 |
2048 global TFT_divetimeout ; Show timeout counter | 2055 global TFT_divetimeout ; Show timeout counter |
2049 TFT_divetimeout: | 2056 TFT_divetimeout: |
2050 call TFT_warning_set_window ; Sets the row and column for the current warning | 2057 call TFT_warning_set_window ; Sets the row and column for the current warning |
2051 tstfsz WREG ; Is there room for the warning? | 2058 tstfsz WREG ; Is there room for the warning? |