comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 415:d022c62a1df5

fixing issue with end-of-dive threshold in high-altitude mode simulator now works up to 120m depth fix internal logbook hung up on bad profile data
author heinrichsweikamp
date Sun, 17 Jul 2011 17:23:25 +0200
parents dd4a1aa96232
children 3abf9d7dafae
comparison
equal deleted inserted replaced
414:dd4a1aa96232 415:d022c62a1df5
370 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder 370 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder
371 371
372 movff xC+0,last_temperature+0 ; 372 movff xC+0,last_temperature+0 ;
373 movff xC+1,last_temperature+1 ; = Pixels/10m (For scale, draw any xx rows a scale-line) 373 movff xC+1,last_temperature+1 ; = Pixels/10m (For scale, draw any xx rows a scale-line)
374 374
375 movf last_temperature+0,W
376 iorwf last_temperature+1,W ; last_temperature:2 = Null?
377 bnz display_profile_offset4 ; No, continue
378 incf last_temperature+1,F ; Yes, make last_temperature+1>1 to make "display_profile2e" working
379
380 display_profile_offset4:
375 bsf leftbind 381 bsf leftbind
376 output_16dp d'3' ; max. depth 382 output_16dp d'3' ; max. depth
377 STRCAT "m " 383 STRCAT "m "
378 call I2CREAD2 ; divetime in minutes 384 call I2CREAD2 ; divetime in minutes
379 movff SSPBUF,lo 385 movff SSPBUF,lo