comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 709:74878be38d4c

bugfix diluent store positions
author heinrichsweikamp
date Wed, 08 May 2013 11:33:26 +0200
parents 8ffbd5cb4b42
children 4452837aff37
comparison
equal deleted inserted replaced
708:71bb907d0ce5 709:74878be38d4c
1416 movf EEDATA,W 1416 movf EEDATA,W
1417 call write_external_eeprom 1417 call write_external_eeprom
1418 bra end_dive4 1418 bra end_dive4
1419 1419
1420 end_dive3: 1420 end_dive3:
1421 read_int_eeprom d'96' ; Read byte (stored in EEDATA) 1421 ; New in 2.52 Diluents stored seperately in EEPROM Bank0
1422 movf EEDATA,W 1422 ;Byte96-97:
1423 call write_external_eeprom 1423 ;Diluent 1 Default (%O2,%He)
1424 read_int_eeprom d'97' ; Read byte (stored in EEDATA) 1424 ;Byte98-99:
1425 movf EEDATA,W 1425 ;Diluent 1 Current (%O2,%He)
1426 call write_external_eeprom 1426 ;Byte100-101:
1427 ;Diluent 2 Default (%O2,%He)
1428 ;Byte102-103:
1429 ;Diluent 2 Current (%O2,%He)
1430 ;Byte104-105:
1431 ;Diluent 3 Default (%O2,%He)
1432 ;Byte106-107:
1433 ;Diluent 3 Current (%O2,%He)
1434 ;Byte108-109:
1435 ;Diluent 4 Default (%O2,%He)
1436 ;Byte110-111:
1437 ;Diluent 4 Current (%O2,%He)
1438 ;Byte112-113:
1439 ;Diluent 5 Default (%O2,%He)
1440 ;Byte114-115:
1441 ;Diluent 5 Current (%O2,%He)
1442 ;Byte116:
1443 ;First Diluent (1-5)
1427 read_int_eeprom d'98' ; Read byte (stored in EEDATA) 1444 read_int_eeprom d'98' ; Read byte (stored in EEDATA)
1428 movf EEDATA,W 1445 movf EEDATA,W
1429 call write_external_eeprom 1446 call write_external_eeprom
1430 read_int_eeprom d'99' ; Read byte (stored in EEDATA) 1447 read_int_eeprom d'99' ; Read byte (stored in EEDATA)
1431 movf EEDATA,W 1448 movf EEDATA,W
1432 call write_external_eeprom 1449 call write_external_eeprom
1433 read_int_eeprom d'100' ; Read byte (stored in EEDATA)
1434 movf EEDATA,W
1435 call write_external_eeprom
1436 read_int_eeprom d'101' ; Read byte (stored in EEDATA)
1437 movf EEDATA,W
1438 call write_external_eeprom
1439 read_int_eeprom d'102' ; Read byte (stored in EEDATA) 1450 read_int_eeprom d'102' ; Read byte (stored in EEDATA)
1440 movf EEDATA,W 1451 movf EEDATA,W
1441 call write_external_eeprom 1452 call write_external_eeprom
1442 read_int_eeprom d'103' ; Read byte (stored in EEDATA) 1453 read_int_eeprom d'103' ; Read byte (stored in EEDATA)
1443 movf EEDATA,W 1454 movf EEDATA,W
1444 call write_external_eeprom 1455 call write_external_eeprom
1445 read_int_eeprom d'104' ; Read byte (stored in EEDATA) 1456 read_int_eeprom d'106' ; Read byte (stored in EEDATA)
1446 movf EEDATA,W 1457 movf EEDATA,W
1447 call write_external_eeprom 1458 call write_external_eeprom
1448 read_int_eeprom d'105' ; Read byte (stored in EEDATA) 1459 read_int_eeprom d'107' ; Read byte (stored in EEDATA)
1460 movf EEDATA,W
1461 call write_external_eeprom
1462 read_int_eeprom d'110' ; Read byte (stored in EEDATA)
1463 movf EEDATA,W
1464 call write_external_eeprom
1465 read_int_eeprom d'111' ; Read byte (stored in EEDATA)
1466 movf EEDATA,W
1467 call write_external_eeprom
1468 read_int_eeprom d'114' ; Read byte (stored in EEDATA)
1469 movf EEDATA,W
1470 call write_external_eeprom
1471 read_int_eeprom d'115' ; Read byte (stored in EEDATA)
1449 movf EEDATA,W 1472 movf EEDATA,W
1450 call write_external_eeprom 1473 call write_external_eeprom
1451 1474
1452 end_dive4: 1475 end_dive4:
1453 read_int_eeprom d'24' ; % O2 Gas6 1476 read_int_eeprom d'24' ; % O2 Gas6