comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 297:ceedf078b2d8

Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
author Heinrichsweikamp
date Fri, 29 Apr 2011 20:17:32 +0200
parents 7d24c9d62095
children 36cc8f0c1d73
comparison
equal deleted inserted replaced
296:2986e7cdb68c 297:ceedf078b2d8
322 movff SSPBUF,lo 322 movff SSPBUF,lo
323 call I2CREAD2 ; read max depth 323 call I2CREAD2 ; read max depth
324 movff SSPBUF,hi 324 movff SSPBUF,hi
325 movff lo,xA+0 ; calculate y-scale for profile display 325 movff lo,xA+0 ; calculate y-scale for profile display
326 movff hi,xA+1 326 movff hi,xA+1
327 movlw d'164' ; 164pixel height available 327 movlw d'163' ; 163pixel height available
328 movwf xB+0 328 movwf xB+0
329 clrf xB+1 329 clrf xB+1
330 call div16x16 ; does xA/xB=xC 330 call div16x16 ; does xA/xB=xC
331 movff xC+0,sim_pressure+0 ; holds LOW byte of y-scale (mbar/pixel!) 331 movff xC+0,sim_pressure+0 ; holds LOW byte of y-scale (mbar/pixel!)
332 movff xC+1,sim_pressure+1 ; holds HIGH byte of y-scale (mbar/pixel!) 332 movff xC+1,sim_pressure+1 ; holds HIGH byte of y-scale (mbar/pixel!)
401 addwf xC+0 401 addwf xC+0
402 movlw d'0' 402 movlw d'0'
403 addwfc xC+1 ; xC:2 now holds total dive seconds! 403 addwfc xC+1 ; xC:2 now holds total dive seconds!
404 movff xC+0,xA+0 ; now calculate x-scale value 404 movff xC+0,xA+0 ; now calculate x-scale value
405 movff xC+1,xA+1 405 movff xC+1,xA+1
406 movlw d'159' ; 159pix width available 406 movlw d'154' ; 154pix width available
407 movwf xB+0 407 movwf xB+0
408 clrf xB+1 408 clrf xB+1
409 call div16x16 ; xA/xB=xC 409 call div16x16 ; xA/xB=xC
410 movff xC+0,xA+0 410 movff xC+0,xA+0
411 movff xC+1,xA+1 411 movff xC+1,xA+1