Mercurial > public > hwos_code
comparison src/divemode.asm @ 555:98c564a2d6cc
ignore voting logic
author | heinrichsweikamp |
---|---|
date | Thu, 23 Nov 2017 12:52:36 +0100 |
parents | a5d2e6083b1d |
children | b7eb98dbd800 |
comparison
equal
deleted
inserted
replaced
554:a5d2e6083b1d | 555:98c564a2d6cc |
---|---|
455 clrf xB+1 | 455 clrf xB+1 |
456 clrf xA+0 | 456 clrf xA+0 |
457 clrf xA+1 | 457 clrf xA+1 |
458 btfss use_O2_sensor1 ; Sensor1 active? | 458 btfss use_O2_sensor1 ; Sensor1 active? |
459 bra divemode_setup_sensor_values2 ; No | 459 bra divemode_setup_sensor_values2 ; No |
460 btfss voting_logic_sensor1 ; Sensor within voting logic? | 460 ; btfss voting_logic_sensor1 ; Sensor within voting logic? |
461 bra divemode_setup_sensor_values2 ; No | 461 ; bra divemode_setup_sensor_values2 ; No |
462 movf o2_ppo2_sensor1,W | 462 movf o2_ppo2_sensor1,W |
463 addwf xA+0 | 463 addwf xA+0 |
464 movlw .0 | 464 movlw .0 |
465 addwfc xA+1 ; Add into xA:2 | 465 addwfc xA+1 ; Add into xA:2 |
466 incf xB+0,F ; Add a sensor | 466 incf xB+0,F ; Add a sensor |
467 divemode_setup_sensor_values2: | 467 divemode_setup_sensor_values2: |
468 btfss use_O2_sensor2 ; Sensor2 active? | 468 btfss use_O2_sensor2 ; Sensor2 active? |
469 bra divemode_setup_sensor_values3 ; No | 469 bra divemode_setup_sensor_values3 ; No |
470 btfss voting_logic_sensor2 ; Sensor within voting logic? | 470 ; btfss voting_logic_sensor2 ; Sensor within voting logic? |
471 bra divemode_setup_sensor_values3 ; No | 471 ; bra divemode_setup_sensor_values3 ; No |
472 movf o2_ppo2_sensor2,W | 472 movf o2_ppo2_sensor2,W |
473 addwf xA+0 | 473 addwf xA+0 |
474 movlw .0 | 474 movlw .0 |
475 addwfc xA+1 ; Add into xA:2 | 475 addwfc xA+1 ; Add into xA:2 |
476 incf xB+0,F ; Add a sensor | 476 incf xB+0,F ; Add a sensor |
477 divemode_setup_sensor_values3: | 477 divemode_setup_sensor_values3: |
478 btfss use_O2_sensor3 ; Sensor3 active? | 478 btfss use_O2_sensor3 ; Sensor3 active? |
479 bra divemode_setup_sensor_values4 ; No | 479 bra divemode_setup_sensor_values4 ; No |
480 btfss voting_logic_sensor3 ; Sensor within voting logic? | 480 ; btfss voting_logic_sensor3 ; Sensor within voting logic? |
481 bra divemode_setup_sensor_values4 ; No | 481 ; bra divemode_setup_sensor_values4 ; No |
482 movf o2_ppo2_sensor3,W | 482 movf o2_ppo2_sensor3,W |
483 addwf xA+0 | 483 addwf xA+0 |
484 movlw .0 | 484 movlw .0 |
485 addwfc xA+1 ; Add into xA:2 | 485 addwfc xA+1 ; Add into xA:2 |
486 incf xB+0,F ; Add a sensor | 486 incf xB+0,F ; Add a sensor |