Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 218:f4b79292e31f
BUGFIX NoFly time
Bug in char-to-float promotion ???
author | JeanDo |
---|---|
date | Sat, 26 Feb 2011 17:53:43 +0100 |
parents | f60acc323701 |
children | 3cf6649e89ac |
comparison
equal
deleted
inserted
replaced
217:ce6f16711567 | 218:f4b79292e31f |
---|---|
976 movlw d'1' | 976 movlw d'1' |
977 movwf nofly_time+0 ; Clear nofly time | 977 movwf nofly_time+0 ; Clear nofly time |
978 clrf nofly_time+1 ; Clear nofly time | 978 clrf nofly_time+1 ; Clear nofly time |
979 bcf nofly_active ; Clear flag | 979 bcf nofly_active ; Clear flag |
980 return | 980 return |
981 | 981 |
982 calculate_noflytime2: | 982 calculate_noflytime2: |
983 movff xA+0,int_I_temp+0 | 983 movff xA+0,int_I_temp+0 |
984 movff xA+1,int_I_temp+1 | 984 movff xA+1,int_I_temp+1 |
985 GETCUSTOM8 .13 ; nofly_time_ratio | 985 GETCUSTOM8 .13 ; nofly_time_ratio |
986 movwf xB+0 | 986 movff WREG,char_I_temp |
987 movff xB,char_I_temp | |
988 ostc_debug 'K' ; Sends debug-information to screen if debugmode active | 987 ostc_debug 'K' ; Sends debug-information to screen if debugmode active |
989 call deco_calc_percentage | 988 call deco_calc_percentage |
990 movlb b'00000001' ; select ram bank 1 | 989 movlb b'00000001' ; select ram bank 1 |
991 ostc_debug 'L' ; Sends debug-information to screen if debugmode active | 990 ostc_debug 'L' ; Sends debug-information to screen if debugmode active |
992 movff int_I_temp+0,xA+0 | 991 movff int_I_temp+0,xA+0 |