comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 445:6e57b5bb98ce

localisation part 1 from Sergei
author heinrichsweikamp
date Thu, 11 Aug 2011 20:01:55 +0200
parents 9cec10e64077
children 154b1d1c489e
comparison
equal deleted inserted replaced
444:f6cdd0079c36 445:6e57b5bb98ce
222 222
223 movlw .100 ; Detect if CNS > 100% 223 movlw .100 ; Detect if CNS > 100%
224 cpfslt sim_CNS 224 cpfslt sim_CNS
225 call PLED_warnings_color ; Yes: draw in red ! 225 call PLED_warnings_color ; Yes: draw in red !
226 226
227 STRCPY "CNS:" 227 STRCPY TXT_CNS4
228 movff char_O_CNS_fraction,lo ; Current CNS, before dive. 228 movff char_O_CNS_fraction,lo ; Current CNS, before dive.
229 output_8 229 output_8
230 STRCAT "%\x92" ; Right-arrow 230 STRCAT "%\x92" ; Right-arrow
231 231
232 movff sim_CNS,lo ; Get back CNS value. 232 movff sim_CNS,lo ; Get back CNS value.
234 STRCAT_PRINT "%" 234 STRCAT_PRINT "%"
235 bra simulator_decoplan_cns_2 235 bra simulator_decoplan_cns_2
236 236
237 simulator_decoplan_cns_1: 237 simulator_decoplan_cns_1:
238 call PLED_warnings_color ; Yes: draw in red ! 238 call PLED_warnings_color ; Yes: draw in red !
239 STRCPY_PRINT "CNS > 250%" 239 STRCPY_PRINT TXT_CNSGR10
240 240
241 simulator_decoplan_cns_2: 241 simulator_decoplan_cns_2:
242 call PLED_standard_color ; Back to normal. 242 call PLED_standard_color ; Back to normal.
243 WIN_INVERT .1 ; Init new Wordprocessor 243 WIN_INVERT .1 ; Init new Wordprocessor
244 DISPLAYTEXT .188 ; Sim. Results: 244 DISPLAYTEXT .188 ; Sim. Results: