Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 351:5c186a72cb5d 64kByte Logbook
Debugging the new logbook format, 64kB download routine
author | heinrichsweikamp |
---|---|
date | Tue, 31 May 2011 22:09:17 +0200 |
parents | ed137d66ac65 |
children | 544a96faa9f3 |
comparison
equal
deleted
inserted
replaced
350:7250ca7c8d24 | 351:5c186a72cb5d |
---|---|
587 movff eeprom_address+0, eeprom_header_address+0 ; store startposition | 587 movff eeprom_address+0, eeprom_header_address+0 ; store startposition |
588 movff eeprom_address+1, eeprom_header_address+1 ; store startposition | 588 movff eeprom_address+1, eeprom_header_address+1 ; store startposition |
589 | 589 |
590 ; shift address for header | 590 ; shift address for header |
591 ; the header will be stored after the dive | 591 ; the header will be stored after the dive |
592 incf_eeprom_address d'47' ; Macro, that adds 8Bit to eeprom_address:2 with banking at 0x8000 | 592 incf_eeprom_address d'57' ; Macro, that adds 8Bit to eeprom_address:2 with banking at 0x8000 |
593 | 593 |
594 store_dive_data2: | 594 store_dive_data2: |
595 SAFE_2BYTE_COPY rel_pressure, lo | 595 SAFE_2BYTE_COPY rel_pressure, lo |
596 movf lo,W ; store depth with every sample | 596 movf lo,W ; store depth with every sample |
597 call write_external_eeprom | 597 call write_external_eeprom |
1331 call write_external_eeprom ; Store Salinity to Dive | 1331 call write_external_eeprom ; Store Salinity to Dive |
1332 | 1332 |
1333 movff char_O_CNS_fraction,WREG ; copy into bank1 | 1333 movff char_O_CNS_fraction,WREG ; copy into bank1 |
1334 call write_external_eeprom ; Stores CNS% | 1334 call write_external_eeprom ; Stores CNS% |
1335 | 1335 |
1336 ; Add additional 10bytes here.... mH | 1336 movff avr_rel_pressure_total+0,WREG ; Average Depth |
1337 call write_external_eeprom | |
1338 movff avr_rel_pressure_total+1,WREG ; Average Depth | |
1339 call write_external_eeprom | |
1340 | |
1341 clrf WREG | |
1342 call write_external_eeprom ; Spare8 | |
1343 clrf WREG | |
1344 call write_external_eeprom ; Spare7 | |
1345 clrf WREG | |
1346 call write_external_eeprom ; Spare6 | |
1347 clrf WREG | |
1348 call write_external_eeprom ; Spare5 | |
1349 clrf WREG | |
1350 call write_external_eeprom ; Spare4 | |
1351 clrf WREG | |
1352 call write_external_eeprom ; Spare3 | |
1353 clrf WREG | |
1354 call write_external_eeprom ; Spare2 | |
1355 clrf WREG | |
1356 call write_external_eeprom ; Spare1 | |
1337 | 1357 |
1338 movlw 0xFB ; Header stop | 1358 movlw 0xFB ; Header stop |
1339 call write_external_eeprom | 1359 call write_external_eeprom |
1340 movlw 0xFB | 1360 movlw 0xFB |
1341 call write_external_eeprom | 1361 call write_external_eeprom |