comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 458:d300e6ad6f66

Store divisor_deco=0 for apnoe dives
author heinrichsweikamp
date Thu, 01 Sep 2011 12:22:46 +0200
parents 993e681e89cf
children c7b663939737
comparison
equal deleted inserted replaced
457:993e681e89cf 458:d300e6ad6f66
1268 1268
1269 movlw d'2' ; information size deco 1269 movlw d'2' ; information size deco
1270 movwf temp1 ; copy to bits 0-3 1270 movwf temp1 ; copy to bits 0-3
1271 swapf temp1,F ; swap nibbels 0-3 with 4-7 1271 swapf temp1,F ; swap nibbels 0-3 with 4-7
1272 GETCUSTOM8 d'22' ; Divisor deco 1272 GETCUSTOM8 d'22' ; Divisor deco
1273 btfsc FLAG_apnoe_mode ; in Apnoe mode?
1274 movlw d'0' ; Yes, set to zero
1273 addwf temp1,W ; copy to bits 0-3, result in WREG 1275 addwf temp1,W ; copy to bits 0-3, result in WREG
1274 call write_external_eeprom 1276 call write_external_eeprom
1275 1277
1276 movlw d'1' ; information size GF 1278 movlw d'1' ; information size GF
1277 movwf temp1 ; copy to bits 0-3 1279 movwf temp1 ; copy to bits 0-3