comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 47:56aea9fcdd8f

1.65beta release
author heinrichsweikamp
date Thu, 15 Jul 2010 18:09:58 +0200
parents 985607cfb813
children 0338aac9a267
comparison
equal deleted inserted replaced
46:8457bb96b860 47:56aea9fcdd8f
154 PLED_color_code_ppo22: 154 PLED_color_code_ppo22:
155 call PLED_warnings_color 155 call PLED_warnings_color
156 return 156 return
157 157
158 PLED_color_code_velocity: 158 PLED_color_code_velocity:
159 btfss neg_flag ; Ignore for ascend!
160 bra PLED_color_code_velocity1 ; Skip check!
159 movff divA+0,lo 161 movff divA+0,lo
160 GETCUSTOM8 d'47' ; Velocity warn [m/min] 162 GETCUSTOM8 d'47' ; Velocity warn [m/min]
161 subwf lo,W 163 subwf lo,W
162 btfsc STATUS,C 164 btfsc STATUS,C
163 bra PLED_color_code_velocity2 ; Set to warning color 165 bra PLED_color_code_velocity2 ; Set to warning color
166 PLED_color_code_velocity1:
164 call PLED_standard_color 167 call PLED_standard_color
165 return 168 return
166 PLED_color_code_velocity2: 169 PLED_color_code_velocity2:
167 call PLED_warnings_color 170 call PLED_warnings_color
168 return 171 return
208 call word_processor 211 call word_processor
209 return 212 return
210 213
211 214
212 PLED_resetdebugger: 215 PLED_resetdebugger:
213 bsf LED_red
214 bcf LED_blue 216 bcf LED_blue
215 call PLED_boot ; PLED boot 217 call PLED_boot ; PLED boot
216 call PLED_ClearScreen ; clean up OLED 218 call PLED_ClearScreen ; clean up OLED
217 219 call PLED_standard_color
218 call PLED_standard_color 220 WIN_INVERT .0 ; Init new Wordprocessor
219 221
220 DISPLAYTEXT .133 222 DISPLAYTEXT .133
221 DISPLAYTEXT .134 223 DISPLAYTEXT .134
222 DISPLAYTEXT .135 224 DISPLAYTEXT .135
223 DISPLAYTEXT .136 ; Display Debug intro 225 DISPLAYTEXT .136 ; Display Debug intro