comparison src/tft_outputs.asm @ 633:690c48db7b5b

3.09 beta 2 release
author heinrichsweikamp
date Thu, 05 Mar 2020 15:06:14 +0100
parents 185ba2f91f59
children 4050675965ea
comparison
equal deleted inserted replaced
632:0347acdf6d8e 633:690c48db7b5b
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File tft_outputs.asm next combined generation V3.08.7 3 ; File tft_outputs.asm next combined generation V3.09.1 fix
4 ; 4 ;
5 ; high-level Display Outputs 5 ; high-level Display Outputs
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
1041 1041
1042 global TFT_show_ndl 1042 global TFT_show_ndl
1043 TFT_show_ndl: 1043 TFT_show_ndl:
1044 btfsc dive_main_menu ; is the dive mode menu shown? 1044 btfsc dive_main_menu ; is the dive mode menu shown?
1045 return ; YES - abort 1045 return ; YES - abort
1046 call TFT_memo_color ; NO - set color 1046 movff int_O_NDL_norm+0,lo ; NO - get low byte of NDL time in normal plan
1047 movff int_O_NDL_norm+1,lo ; - get high byte of NDL time in normal plan
1048 btfsc lo,int_invalid_flag ; - is the invalid flag set?
1049 call TFT_disabled_color ; YES - switch to disabled color
1050 movff int_O_NDL_norm+0,lo ; - get low byte of NDL time in normal plan
1051 btfsc deco_locked ; - was the dive in deco? 1047 btfsc deco_locked ; - was the dive in deco?
1052 bra TFT_show_ndl_norm ; YES - use normal layout 1048 bra TFT_show_ndl_norm ; YES - use normal layout
1053 btfsc alt_layout_active ; NO - alternative layout active? 1049 btfsc alt_layout_active ; NO - alternative layout active?
1054 bra TFT_show_ndl_alt ; YES - use alternative layout 1050 bra TFT_show_ndl_alt ; YES - use alternative layout
1055 ;bra TFT_show_ndl_norm ; NO - use normal layout 1051 ;bra TFT_show_ndl_norm ; NO - use normal layout
1056 1052
1057 TFT_show_ndl_norm: ; set position 1053 TFT_show_ndl_norm: ; set position
1058 WIN_MEDIUM dm_ndl_value_col_norm,dm_ndl_value_row_norm 1054 WIN_MEDIUM dm_ndl_value_col_norm,dm_ndl_value_row_norm
1055 rcall TFT_show_ndl_set_color ; set color
1059 output_8 ; display 0...240 1056 output_8 ; display 0...240
1060 TFT_show_ndl_exit_1: 1057 TFT_show_ndl_exit_1:
1061 STRCAT_PRINT "'" ; print minutes symbol 1058 STRCAT_PRINT "'" ; print minutes symbol
1062 TFT_show_ndl_exit_2: 1059 TFT_show_ndl_exit_2:
1063 goto TFT_standard_color ; done 1060 goto TFT_standard_color ; done
1066 btfsc safety_stop_active ; is the safety stop active? 1063 btfsc safety_stop_active ; is the safety stop active?
1067 bra TFT_show_ndl_alt_safety ; YES 1064 bra TFT_show_ndl_alt_safety ; YES
1068 ; clear potential remains from NDL normal and set position 1065 ; clear potential remains from NDL normal and set position
1069 WIN_BOX_BLACK dm_ndl_value_row_norm, dm_3rdrow_bot, dm_ndl_value_col_norm, dm_ndl_value_col_alt ; top, bottom, left, right 1066 WIN_BOX_BLACK dm_ndl_value_row_norm, dm_3rdrow_bot, dm_ndl_value_col_norm, dm_ndl_value_col_alt ; top, bottom, left, right
1070 WIN_LARGE dm_ndl_value_col_alt, dm_ndl_value_row_alt 1067 WIN_LARGE dm_ndl_value_col_alt, dm_ndl_value_row_alt
1068 rcall TFT_show_ndl_set_color ; set color
1071 output_99 ; display 0...99 1069 output_99 ; display 0...99
1072 STRCAT_PRINT "" ; finalize output 1070 STRCAT_PRINT "" ; finalize output
1073 bra TFT_show_ndl_exit_2 ; done 1071 bra TFT_show_ndl_exit_2 ; done
1074 1072
1075 TFT_show_ndl_alt_safety: 1073 TFT_show_ndl_alt_safety:
1076 WIN_MEDIUM dm_ndl_value_col_norm,dm_ndl_value_row_norm 1074 WIN_MEDIUM dm_ndl_value_col_norm,dm_ndl_value_row_norm
1075 rcall TFT_show_ndl_set_color ; set color
1077 PUTC " " ; fill first digit position 1076 PUTC " " ; fill first digit position
1078 output_99 ; display 0...99 1077 output_99 ; display 0...99
1079 bra TFT_show_ndl_exit_1 ; print minutes symbol and done 1078 bra TFT_show_ndl_exit_1 ; print minutes symbol and done
1079
1080 TFT_show_ndl_set_color:
1081 movff int_O_NDL_norm+1,lo ; get high byte of NDL time in normal plan
1082 btfss lo,int_invalid_flag ; is the invalid flag set?
1083 goto TFT_memo_color ; NO - select memo color and return
1084 goto TFT_disabled_color ; YES - select disabled color and return
1080 1085
1081 1086
1082 global TFT_divemode_sign_show 1087 global TFT_divemode_sign_show
1083 TFT_divemode_sign_show: 1088 TFT_divemode_sign_show:
1084 btfsc alt_layout_active ; alternative layout active? 1089 btfsc alt_layout_active ; alternative layout active?