Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 231:f9d42f8ff97b
BUGFIX Don't show (nosense) gas consumption in CCR mode (bug BB20).
author | JeanDo |
---|---|
date | Wed, 16 Mar 2011 19:03:01 +0100 |
parents | 9406a5b0ba5e |
children | 59c479181724 |
comparison
equal
deleted
inserted
replaced
230:9406a5b0ba5e | 231:f9d42f8ff97b |
---|---|
233 bra simulator_show_decoplan5_0 ; All done, clear and return | 233 bra simulator_show_decoplan5_0 ; All done, clear and return |
234 | 234 |
235 call PLED_decoplan ; Re-Draw Current page of GF Decoplan | 235 call PLED_decoplan ; Re-Draw Current page of GF Decoplan |
236 bra simulator_show_decoplan1 | 236 bra simulator_show_decoplan1 |
237 | 237 |
238 simulator_show_decoplan5_0: | 238 ;---- In OCR mode, show the gas Usage special page --------------------------- |
239 btfss display_see_deco | 239 simulator_show_decoplan5_0: |
240 bra simulator_show_decoplan4 | 240 btfss display_see_deco ; Already displayed ? |
241 bra simulator_show_decoplan4 ; Exit to menu. | |
242 | |
241 bcf display_see_deco ; clear flag | 243 bcf display_see_deco ; clear flag |
242 | 244 |
245 btfsc FLAG_const_ppO2_mode ; In CCR mode ? | |
246 bra simulator_show_decoplan4 ; YES: finished. | |
247 | |
243 ; Re-read gas change depth, from the unsorted list. | 248 ; Re-read gas change depth, from the unsorted list. |
244 movlw .27 ; Active flags. | 249 movlw .27 ; Active flags. |
245 movwf EEADR | 250 movwf EEADR |
246 clrf EEADRH | 251 clrf EEADRH |
247 call read_eeprom | 252 call read_eeprom |
311 simulator_show_decoplan5_1: | 316 simulator_show_decoplan5_1: |
312 movlw d'5' ; list all five gases | 317 movlw d'5' ; list all five gases |
313 cpfseq wait_temp ; All gases shown? | 318 cpfseq wait_temp ; All gases shown? |
314 bra simulator_show_decoplan5_loop ; No | 319 bra simulator_show_decoplan5_loop ; No |
315 | 320 |
316 WIN_TOP .2 | |
317 WIN_LEFT .0 | |
318 WIN_INVERT 1 | 321 WIN_INVERT 1 |
319 STRCPY_PRINT "Gas usage: " | 322 DISPLAYTEXTH .301 ; OCR Gas Usage: |
320 WIN_INVERT 0 | 323 WIN_INVERT 0 |
321 | 324 |
322 bra simulator_show_decoplan1 | 325 bra simulator_show_decoplan1 |
323 | 326 |
324 simulator_show_decoplan4: | 327 simulator_show_decoplan4: |