comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 168:494587193f5d

Use 16bits for TTS sum. + Display in divemode as 16bits. + Display in decoplanning as 16bits.
author JeanDo
date Tue, 25 Jan 2011 01:02:35 +0100
parents aaa6e8720a7d
children e26f49674956
comparison
equal deleted inserted replaced
167:cb055a7d75f3 168:494587193f5d
157 call PLED_ClearScreen 157 call PLED_ClearScreen
158 call PLED_simdata_screen 158 call PLED_simdata_screen
159 call divemenu_see_decoplan 159 call divemenu_see_decoplan
160 160
161 ; Display TTS, if any... 161 ; Display TTS, if any...
162 movff char_O_ascenttime,WREG 162 movff int_O_ascenttime+0,lo
163 iorwf WREG 163 movff int_O_ascenttime+1,hi
164 movf lo,W
165 iorwf hi,W
164 bz simulator_decoplan_notts 166 bz simulator_decoplan_notts
165 167
166 WIN_LEFT .0 168 WIN_LEFT .0
167 WIN_TOP .160 169 WIN_TOP .160
168 call PLED_standard_color 170 call PLED_standard_color
169 171
170 STRCPY "TTS: " 172 STRCPY "TTS: "
171 movff char_O_ascenttime,lo
172 bcf leftbind 173 bcf leftbind
173 output_8 174 output_16
174 STRCAT_PRINT "'" 175 STRCAT_PRINT "'"
175 simulator_decoplan_notts: 176 simulator_decoplan_notts:
176 177
177 WIN_INVERT .1 ; Init new Wordprocessor 178 WIN_INVERT .1 ; Init new Wordprocessor
178 DISPLAYTEXT .188 ; Sim. Results: 179 DISPLAYTEXT .188 ; Sim. Results: