comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 228:6d4e29d80ff3

1.83beta release, 1.84beta start
author heinrichsweikamp
date Sat, 05 Mar 2011 10:09:32 +0100
parents 49c90c5d9603
children 85ea09d3b9d8
comparison
equal deleted inserted replaced
227:8dbcc26878d3 228:6d4e29d80ff3
1516 clrf xB+1 1516 clrf xB+1
1517 call mult16x16 ; xC:4=xA:2*xB:2 1517 call mult16x16 ; xC:4=xA:2*xB:2
1518 movf divesecs,W 1518 movf divesecs,W
1519 addwf xC+0,F 1519 addwf xC+0,F
1520 movlw d'0' 1520 movlw d'0'
1521 addwfc xC+1,F 1521 addwfc xC+1,F ; xC:2 holds total dive seconds
1522 movlw d'3' ; 2+1 1522 movlw d'3' ; 2+1
1523 btfss divesecs,0 ; divesecs even? 1523 btfss divesecs,0 ; divesecs even?
1524 movlw d'2' ; Yes, do not add +1 1524 movlw d'2' ; Yes, do not add +1
1525 addwf xC+0,F 1525 addwf xC+0,F
1526 movlw d'0' 1526 movlw d'0'