comparison src/simulator.asm @ 598:e1f0f5e3d4e4

BUGFIX: Internal deco planner did not display results in imperial units
author heinrichsweikamp
date Mon, 30 Jul 2018 19:45:53 +0200
parents b455b31ce022
children ca4556fb60b9
comparison
equal deleted inserted replaced
597:66334c6adcf6 598:e1f0f5e3d4e4
264 lfsr FSR2,buffer 264 lfsr FSR2,buffer
265 265
266 TSTOSS opt_units ; 0=Meters, 1=Feets 266 TSTOSS opt_units ; 0=Meters, 1=Feets
267 bra deco_plan_show_nstd_stop_metric 267 bra deco_plan_show_nstd_stop_metric
268 268
269 movff hi,up ; backup hi (minutes)
269 WIN_LEFT .85 270 WIN_LEFT .85
270 movf lo,W ; lo = m 271 movf lo,W ; lo = m
271 mullw .100 ; PRODL:PRODH = mbar 272 mullw .100 ; PRODL:PRODH = mbar
272 movff PRODL,lo 273 movff PRODL,lo
273 movff PRODH,hi 274 movff PRODH,hi
294 bsf leftbind 295 bsf leftbind
295 bsf ignore_digit4 ; Only full feet 296 bsf ignore_digit4 ; Only full feet
296 output_16 297 output_16
297 bcf leftbind 298 bcf leftbind
298 STRCAT_PRINT "ft " 299 STRCAT_PRINT "ft "
300 movff up,hi ; restore hi (minutes)
299 bra deco_plan_show_nstd_stop_common 301 bra deco_plan_show_nstd_stop_common
300 302
301 deco_plan_show_nstd_stop_metric: 303 deco_plan_show_nstd_stop_metric:
302 WIN_LEFT .90 304 WIN_LEFT .90
303 bsf leftbind 305 bsf leftbind