comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 142:8b75ba28d641

Screen-flipping custom function. - Fix bank safe addressings.
author JeanDo
date Fri, 07 Jan 2011 03:01:02 +0100
parents 622da16b768f
children e82e0df6d0ea
comparison
equal deleted inserted replaced
141:622da16b768f 142:8b75ba28d641
82 movlw color_code_temp 82 movlw color_code_temp
83 call PLED_color_code1 83 call PLED_color_code1
84 endm 84 endm
85 85
86 PLED_color_code1: ; Color-codes the output, if required 86 PLED_color_code1: ; Color-codes the output, if required
87 movwf debug_temp 87 dcfsnz WREG
88 dcfsnz debug_temp,F
89 bra PLED_color_code_depth ; CF43 [mBar], 16Bit 88 bra PLED_color_code_depth ; CF43 [mBar], 16Bit
90 dcfsnz debug_temp,F 89 dcfsnz WREG
91 bra PLED_color_code_cns ; CF44 [%] 90 bra PLED_color_code_cns ; CF44 [%]
92 dcfsnz debug_temp,F 91 dcfsnz WREG
93 bra PLED_color_code_gf ; CF45 [%] 92 bra PLED_color_code_gf ; CF45 [%]
94 dcfsnz debug_temp,F 93 dcfsnz WREG
95 bra PLED_color_code_ppo2 ; CF46 [cBar] 94 bra PLED_color_code_ppo2 ; CF46 [cBar]
96 dcfsnz debug_temp,F 95 dcfsnz WREG
97 bra PLED_color_code_velocity ; CF47 [m/min] 96 bra PLED_color_code_velocity ; CF47 [m/min]
98 dcfsnz debug_temp,F 97 dcfsnz WREG
99 bra PLED_color_code_ceiling ; Show warning if CF41=1 and current depth>shown ceiling 98 bra PLED_color_code_ceiling ; Show warning if CF41=1 and current depth>shown ceiling
100 dcfsnz debug_temp,F 99 dcfsnz WREG
101 bra PLED_color_code_gaslist ; Color-code current row in Gaslist (%O2 in "EEDATA") 100 bra PLED_color_code_gaslist ; Color-code current row in Gaslist (%O2 in "EEDATA")
102 101
103 102
104 PLED_color_code_gaslist: ; %O2 in "EEDATA" 103 PLED_color_code_gaslist: ; %O2 in "EEDATA"
105 ; Check very high ppO2 manually 104 ; Check very high ppO2 manually
242 return 241 return
243 PLED_color_code_velocity2: 242 PLED_color_code_velocity2:
244 call PLED_warnings_color 243 call PLED_warnings_color
245 return 244 return
246 245
247 ostc_debug macro debug_temp 246 ostc_debug macro value
248 movlw debug_temp 247 movlw value
249 call ostc_debug1 248 call ostc_debug1
250 endm 249 endm
251 250
252 ostc_debug1: 251 ostc_debug1:
253 movwf debug_temp
254
255 movff debug_char+4,debug_char+5 ; Save for background debugger 252 movff debug_char+4,debug_char+5 ; Save for background debugger
256 movff debug_char+3,debug_char+4 253 movff debug_char+3,debug_char+4
257 movff debug_char+2,debug_char+3 254 movff debug_char+2,debug_char+3
258 movff debug_char+1,debug_char+2 255 movff debug_char+1,debug_char+2
259 movff debug_char+0,debug_char+1 256 movff debug_char+0,debug_char+1
260 movff debug_temp,debug_char+0 257 movff WREG,debug_char+0
261 258
262 btfss debug_mode ; Are we in debugmode? 259 btfss debug_mode ; Are we in debugmode?
263 return ; No, return! 260 return ; No, return!
264 261
265 WIN_TOP .200 262 WIN_TOP .200