Mercurial > public > hwos_code
comparison src/divemode.asm @ 318:6d8c82fe5a01 new_screen_layout
VSIbar #3d: more filter, neg_flag_velocity close to calculation, debug color for descend bar
author | janos_kovacs <kovjanos@gmail.com> |
---|---|
date | Thu, 11 Jun 2015 15:16:42 +0100 |
parents | 4f83470dcece |
children | 3d43da7acfe1 |
comparison
equal
deleted
inserted
replaced
317:7b64c0ba6a7e | 318:6d8c82fe5a01 |
---|---|
456 movff sub_a+0,last_pressure_velocity+0 ; store old value for velocity | 456 movff sub_a+0,last_pressure_velocity+0 ; store old value for velocity |
457 movff sub_a+1,last_pressure_velocity+1 | 457 movff sub_a+1,last_pressure_velocity+1 |
458 | 458 |
459 call subU16 ; sub_c = amb_pressure - last_pressure | 459 call subU16 ; sub_c = amb_pressure - last_pressure |
460 | 460 |
461 bcf neg_flag_velocity | |
462 btfsc neg_flag | |
463 bsf neg_flag_velocity | |
464 | |
461 movff sub_c+0,xA+0 | 465 movff sub_c+0,xA+0 |
462 movff sub_c+1,xA+1 | 466 movff sub_c+1,xA+1 |
463 movlw d'39' ; 77 when called every second.... | 467 movlw d'39' ; 77 when called every second.... |
464 movwf xB+0 | 468 movwf xB+0 |
465 clrf xB+1 | 469 clrf xB+1 |