comparison code_part1/OSTC_code_asm_part1/isr.asm @ 357:562f1bc79f3c 64kByte Logbook

Bugfix: Wake-up into divemode with 1.91alpha
author Heinrichsweikamp
date Tue, 07 Jun 2011 13:06:14 +0200
parents ba0f30f3d560
children 88660a400338
comparison
equal deleted inserted replaced
352:544a96faa9f3 357:562f1bc79f3c
341 341
342 RTCisr1: 342 RTCisr1:
343 ; Increase re-setable average depth divetime counter 343 ; Increase re-setable average depth divetime counter
344 incf average_divesecs+0,F ; increase stopwatch registers 344 incf average_divesecs+0,F ; increase stopwatch registers
345 btfsc STATUS,Z 345 btfsc STATUS,Z
346 incf average_divesecs+1,F ; increase stopwatch registers 346 incf average_divesecs+1,F ; increase stopwatch registers
347 347 ; Increase total divetime (Regardless of CF01)
348 incf total_divetime_seconds+0,F ; increase stopwatch registers
349 btfsc STATUS,Z
350 incf total_divetime_seconds+1,F ; increase stopwatch registers
351
348 btfss divemode2 ; displayed divetime is running? 352 btfss divemode2 ; displayed divetime is running?
349 bra RTCisr2 ; No (e.g. too shallow) 353 bra RTCisr2 ; No (e.g. too shallow)
350 354
351 incf divesecs,F ; increase divetime registers 355 ; increase divetime registers (Displayed dive time)
356 incf divesecs,F
352 movlw d'59' 357 movlw d'59'
353 cpfsgt divesecs 358 cpfsgt divesecs
354 bra RTCisr1a 359 bra RTCisr1a
355 360
356 clrf divesecs 361 clrf divesecs