Mercurial > public > hwos_code
comparison src/divemode.asm @ 148:022b886eddaf
some cleanup
author | heinrichsweikamp |
---|---|
date | Wed, 06 Aug 2014 17:38:31 +0200 |
parents | e3ac5b2021bc |
children | 19ad15f04f60 |
comparison
equal
deleted
inserted
replaced
147:fdd4e30846ae | 148:022b886eddaf |
---|---|
581 btfsc simulatormode_active ; In Simulator mode? | 581 btfsc simulatormode_active ; In Simulator mode? |
582 bra timeout_divemode3 ; Yes, use simulator timeout | 582 bra timeout_divemode3 ; Yes, use simulator timeout |
583 endif | 583 endif |
584 | 584 |
585 bcf divemode | 585 bcf divemode |
586 incf timeout_counter,F | 586 infsnz timeout_counter,F |
587 movlw d'0' | 587 incf timeout_counter2,F ; timeout is 15bits |
588 addwfc timeout_counter2,F ; timeout is 15bits | |
589 | 588 |
590 movlw LOW divemode_timeout | 589 movlw LOW divemode_timeout |
591 movwf sub_a+0 | 590 movwf sub_a+0 |
592 movlw HIGH divemode_timeout | 591 movlw HIGH divemode_timeout |
593 movwf sub_a+1 | 592 movwf sub_a+1 |