comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 68:d0b677e1e9a5

new decoplan (GF mode) debuged
author heinrichsweikamp
date Wed, 13 Oct 2010 13:02:20 +0200
parents 6aee3a07f370
children 6beb680a6130
comparison
equal deleted inserted replaced
67:73b9719a40ec 68:d0b677e1e9a5
405 call PLED_clear_divemode_menu ; Clear Menu 405 call PLED_clear_divemode_menu ; Clear Menu
406 406
407 read_int_eeprom d'34' 407 read_int_eeprom d'34'
408 movlw d'3' 408 movlw d'3'
409 cpfsgt EEDATA ; in multi-gf mode? Z16 GF OC=4 and Z16 GF CC=5 409 cpfsgt EEDATA ; in multi-gf mode? Z16 GF OC=4 and Z16 GF CC=5
410 bra divemenu_see_decoplan1 ; No! 410 bra divemenu_see_decoplan1 ; No, standard ZH-L16
411 411
412 bsf multi_gf_display ; Yes, display the multi-gf table screen 412 bsf multi_gf_display ; Yes, display the multi-gf table screen
413 bcf last_ceiling_gf_shown ; Clear flag 413 bcf last_ceiling_gf_shown ; Clear flag
414 414
415 movff char_O_deco_status,deco_status ; 415 ; movff char_O_deco_status,deco_status ;
416 tstfsz deco_status ; deco_status=0 if decompression calculation done 416 ; tstfsz deco_status ; deco_status=0 if decompression calculation done
417 return ; calculation not yet finished! 417 ; return ; calculation not yet finished!
418 418
419 call PLED_decoplan_gf_page1 ; Display the new screen 419 call PLED_decoplan_gf_page1 ; Display the new screen
420 return 420 return
421 421
422 divemenu_see_decoplan1: 422 divemenu_see_decoplan1:
440 incf temp8,F 440 incf temp8,F
441 btfsc last_ceiling_gf_shown ; last ceiling shown? 441 btfsc last_ceiling_gf_shown ; last ceiling shown?
442 bra divemenu_see_decoplan2_0 ; All done, clear and return 442 bra divemenu_see_decoplan2_0 ; All done, clear and return
443 443
444 clrf timeout_counter3 ; Clear timeout Divemode menu 444 clrf timeout_counter3 ; Clear timeout Divemode menu
445 bra timeout_divemenu3 ; Display next page 445 bra timeout_divemenu3x ; Display next page
446 446
447 447
448 448
449 divemenu_set_xgas2: 449 divemenu_set_xgas2:
450 dcfsnz menupos,F 450 dcfsnz menupos,F
731 bcf premenu ; Yes, clear flags and menu, display dive time and mask again 731 bcf premenu ; Yes, clear flags and menu, display dive time and mask again
732 call PLED_active_gas_divemode; Display gas, if required 732 call PLED_active_gas_divemode; Display gas, if required
733 call PLED_clear_divemode_menu; Clear dive mode menu 733 call PLED_clear_divemode_menu; Clear dive mode menu
734 call PLED_divemode_mask ; Display mask 734 call PLED_divemode_mask ; Display mask
735 call PLED_divemins ; Display (new) divetime! 735 call PLED_divemins ; Display (new) divetime!
736 call PLED_temp_divemode ; redraw temperature
736 clrf timeout_counter3 ; Also clear timeout 737 clrf timeout_counter3 ; Also clear timeout
737 bcf display_see_deco ; clear all display flags 738 bcf display_see_deco ; clear all display flags
738 bcf display_see_l_tissue 739 bcf display_see_l_tissue
739 bcf display_set_gas 740 bcf display_set_gas
740 bcf display_set_graphs 741 bcf display_set_graphs
747 748
748 timeout_divemenu3: 749 timeout_divemenu3:
749 movff char_O_deco_status,deco_status ; 750 movff char_O_deco_status,deco_status ;
750 tstfsz deco_status ; deco_status=0 if decompression calculation done 751 tstfsz deco_status ; deco_status=0 if decompression calculation done
751 bra timeout_divemenu1 ; No, skip updating the decoplan 752 bra timeout_divemenu1 ; No, skip updating the decoplan
753 timeout_divemenu3x:
752 call PLED_decoplan_gf_page_current ; Re-Draw Current page of GF Decoplan 754 call PLED_decoplan_gf_page_current ; Re-Draw Current page of GF Decoplan
753 bra timeout_divemenu1 ; Check timeout 755 bra timeout_divemenu1 ; Check timeout
754 756
755 timeout_divemenu6: 757 timeout_divemenu6:
756 ; Update Simulator Mask 758 ; Update Simulator Mask