comparison code_part1/OSTC_code_asm_part1/customview.asm @ 758:3096294bb06e

Show the bailout list in surfacemode (CC Modes)
author heinrichsweikamp
date Tue, 26 Nov 2013 12:11:23 +0100
parents 6e456a6398e0
children ae830d5e63ef
comparison
equal deleted inserted replaced
757:50ed645c251d 758:3096294bb06e
395 ; Yes, show next customview (and delete this flag) 395 ; Yes, show next customview (and delete this flag)
396 396
397 surfcustomview_toggle: 397 surfcustomview_toggle:
398 incf menupos3,F ; Number of customview to show 398 incf menupos3,F ; Number of customview to show
399 surfcustomview_toggle2: 399 surfcustomview_toggle2:
400 movlw d'4' ; Max number 400 movlw d'6' ; Max number
401 cpfsgt menupos3 ; Max reached? 401 cpfsgt menupos3 ; Max reached?
402 bra surfcustomview_mask ; No, show 402 bra surfcustomview_mask ; No, show
403 clrf menupos3 ; Reset to zero (Zero=no custom view) 403 clrf menupos3 ; Reset to zero (Zero=no custom view)
404 surfcustomview_mask: 404 surfcustomview_mask:
405 call DISP_clear_customview_surfmode 405 call DISP_clear_customview_surfmode
407 dcfsnz WREG,F 407 dcfsnz WREG,F
408 bra surfcustomview_init_graphs ; Show the tissue graphs 408 bra surfcustomview_init_graphs ; Show the tissue graphs
409 dcfsnz WREG,F 409 dcfsnz WREG,F
410 bra surfcustomview_init_gaslist ; Show pre-dive gaslist/setpoint list 410 bra surfcustomview_init_gaslist ; Show pre-dive gaslist/setpoint list
411 dcfsnz WREG,F 411 dcfsnz WREG,F
412 bra surfcustomview_init_interval; Show the interval counter 412 bra surfcustomview_init_interval ; Show the interval counter
413 dcfsnz WREG,F 413 dcfsnz WREG,F
414 bra surfcustomview_init_cfview ; Show the interval counter 414 bra surfcustomview_init_cfview ; Show important CF settings
415 dcfsnz WREG,F
416 bra surfcustomview_init_first_bail ; Show the first bailout gas
417 dcfsnz WREG,F
418 bra surfcustomview_init_bailoutlist ; Show the bailout list
415 419
416 surfcustomview_init_nocustomview: 420 surfcustomview_init_nocustomview:
417 bra surfcustomview_toggle_exit 421 bra surfcustomview_toggle_exit
422
423 surfcustomview_init_first_bail: ; Show the first bailout gas
424 btfss FLAG_const_ppO2_mode ; in ppO2 mode
425 bra surfcustomview_toggle ; No, use next Customview!
426 call DISP_bailoutgas ; Show the first bailout gas
427 bra surfcustomview_toggle_exit
428
429 surfcustomview_init_bailoutlist: ; Show the bailout list
430 btfss FLAG_const_ppO2_mode ; in ppO2 mode
431 bra surfcustomview_toggle ; No, use next Customview!
432 call DISP_bailoutlist ; Show the Bailout list
433 bra surfcustomview_toggle_exit
418 434
419 surfcustomview_init_graphs: 435 surfcustomview_init_graphs:
420 btfsc no_deco_customviews ; no-deco-mode-flag = 1 436 btfsc no_deco_customviews ; no-deco-mode-flag = 1
421 bra surfcustomview_toggle ; Yes, use next Customview! 437 bra surfcustomview_toggle ; Yes, use next Customview!
422 438