comparison src/tft_outputs.asm @ 87:82750b8dfcee

CHANGE: Color schemes improved
author heinrichsweikamp
date Wed, 02 Apr 2014 10:25:24 +0200
parents 45a420beb534
children 2a992aba61ef
comparison
equal deleted inserted replaced
86:3bbbfab9818f 87:82750b8dfcee
78 bra TFT_standard_color0 78 bra TFT_standard_color0
79 79
80 global TFT_disabled_color 80 global TFT_disabled_color
81 TFT_disabled_color: 81 TFT_disabled_color:
82 movlw color_grey ; Default to OSTC grey (dark blue) 82 movlw color_grey ; Default to OSTC grey (dark blue)
83 btfsc divemode ; in Divemode?
84 rcall TFT_disabled_color_dive
83 bra TFT_standard_color0 85 bra TFT_standard_color0
86 TFT_disabled_color_dive:
87 movff opt_dive_color_scheme,WREG ; 0-3
88 incf WREG
89 dcfsnz WREG
90 bra TFT_disabled_colordive0 ;0
91 dcfsnz WREG
92 bra TFT_disabled_colordive1 ;1
93 dcfsnz WREG
94 bra TFT_disabled_colordive2 ;2
95 dcfsnz WREG
96 bra TFT_disabled_colordive3 ;3
97 TFT_disabled_colordive0:
98 movlw color_scheme_divemode_dis1
99 return
100 TFT_disabled_colordive1:
101 movlw color_scheme_divemode_dis2
102 return
103 TFT_disabled_colordive2:
104 movlw color_scheme_divemode_dis3
105 return
106 TFT_disabled_colordive3:
107 movlw color_scheme_divemode_dis4
108 return
84 109
85 global TFT_standard_color 110 global TFT_standard_color
86 TFT_standard_color: 111 TFT_standard_color:
87 setf WREG 112 setf WREG ; Default white
88 btfsc divemode ; in Divemode? 113 btfsc divemode ; in Divemode?
89 rcall TFT_standard_color_dive 114 rcall TFT_standard_color_dive
90 TFT_standard_color0: 115 TFT_standard_color0:
91 call TFT_set_color 116 call TFT_set_color
92 return 117 return