Mercurial > public > mk2
diff 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 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Thu Feb 24 23:22:32 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Sat Feb 26 17:53:43 2011 +0100 @@ -978,13 +978,12 @@ clrf nofly_time+1 ; Clear nofly time bcf nofly_active ; Clear flag return - + calculate_noflytime2: movff xA+0,int_I_temp+0 movff xA+1,int_I_temp+1 GETCUSTOM8 .13 ; nofly_time_ratio - movwf xB+0 - movff xB,char_I_temp + movff WREG,char_I_temp ostc_debug 'K' ; Sends debug-information to screen if debugmode active call deco_calc_percentage movlb b'00000001' ; select ram bank 1