comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 25:99512945c7a1

1.61 beta rc2
author heinrichsweikamp
date Thu, 13 May 2010 23:24:55 +0200
parents 73014f788032
children 6e5db85382a2
comparison
equal deleted inserted replaced
22:70ce5847324c 25:99512945c7a1
1254 movlw 0xFB ; Header stop 1254 movlw 0xFB ; Header stop
1255 call write_external_eeprom 1255 call write_external_eeprom
1256 movlw 0xFB 1256 movlw 0xFB
1257 call write_external_eeprom 1257 call write_external_eeprom
1258 1258
1259 btfsc simulatormode_active ; Are we in simulator mode?
1260 bra change_logbook_offset2 ; Yes, do not update history
1261
1259 ; Increase total dive counter 1262 ; Increase total dive counter
1260 read_int_eeprom d'2' ; Read byte (stored in EEDATA) 1263 read_int_eeprom d'2' ; Read byte (stored in EEDATA)
1261 movff EEDATA,temp1 ; Low byte 1264 movff EEDATA,temp1 ; Low byte
1262 read_int_eeprom d'3' ; Read byte (stored in EEDATA) 1265 read_int_eeprom d'3' ; Read byte (stored in EEDATA)
1263 movff EEDATA,temp2 ; high byte 1266 movff EEDATA,temp2 ; high byte
1292 movwf EEADR 1295 movwf EEADR
1293 movff hi,EEDATA 1296 movff hi,EEDATA
1294 call write_eeprom ; Highbyte 1297 call write_eeprom ; Highbyte
1295 1298
1296 change_logbook_offset2: 1299 change_logbook_offset2:
1300 bcf LED_blue
1297 bcf simulatormode_active ; if we were in simulator mode 1301 bcf simulatormode_active ; if we were in simulator mode
1298 bcf LED_blue
1299 1302
1300 end_dive_common: 1303 end_dive_common:
1301 btfsc restore_deco_data ; Restore decodata? 1304 btfsc restore_deco_data ; Restore decodata?
1302 call simulator_restore_tissue_data ; Yes! 1305 call simulator_restore_tissue_data ; Yes!
1303 1306