Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 457:993e681e89cf
no decodata in logbook for apnea dives
author | heinrichsweikamp |
---|---|
date | Thu, 01 Sep 2011 11:57:11 +0200 |
parents | 05ec97e106da |
children | 59ff7a1aa1cb |
comparison
equal
deleted
inserted
replaced
456:f4fbda6db91c | 457:993e681e89cf |
---|---|
152 bra menu_logbook_display_loop2 ; rcall of get_free_eeprom_location not required here (faster) | 152 bra menu_logbook_display_loop2 ; rcall of get_free_eeprom_location not required here (faster) |
153 | 153 |
154 | 154 |
155 menu_logbook4: | 155 menu_logbook4: |
156 ; Adjust eeprom_address to set pointer on first headerbyte | 156 ; Adjust eeprom_address to set pointer on first headerbyte |
157 incf_eeprom_address d'2' ; Macro, that adds 8Bit to eeprom_address:2 with banking at 0x8000 | 157 incf_eeprom_address d'2' ; Macro, that adds 8Bit to eeprom_address:2 |
158 | 158 |
159 btfss logbook_profile_view ; Display profile (search routine is used in profileview, too) | 159 btfss logbook_profile_view ; Display profile (search routine is used in profileview, too) |
160 bra menu_logbook_display_loop ; No, display overwiev list | 160 bra menu_logbook_display_loop ; No, display overwiev list |
161 | 161 |
162 movf divesecs,W ; divenumber that is searched | 162 movf divesecs,W ; divenumber that is searched |
326 | 326 |
327 call I2CREAD2 ; read month | 327 call I2CREAD2 ; read month |
328 movff SSPBUF,lo ; store in lo | 328 movff SSPBUF,lo ; store in lo |
329 | 329 |
330 ; Offset to SamplingRate | 330 ; Offset to SamplingRate |
331 incf_eeprom_address d'32' ; Macro, that adds 8Bit to eeprom_address:2 with banking at 0x8000 | 331 incf_eeprom_address d'32' ; Macro, that adds 8Bit to eeprom_address:2 |
332 call I2CREAD ; Read Sampling rate | 332 call I2CREAD ; Read Sampling rate |
333 movff SSPBUF,samplesecs_value ; Copy sampling rate | 333 movff SSPBUF,samplesecs_value ; Copy sampling rate |
334 decf_eeprom_address d'32' ; Macro, that subtracts 8Bit from eeprom_address:2 with banking at 0x8000 | 334 decf_eeprom_address d'32' ; Macro, that subtracts 8Bit from eeprom_address:2 |
335 | 335 |
336 movff lo,convert_value_temp+0 ; Month (in lo, see above) | 336 movff lo,convert_value_temp+0 ; Month (in lo, see above) |
337 call I2CREAD2 ; Day | 337 call I2CREAD2 ; Day |
338 movff SSPBUF,convert_value_temp+1 | 338 movff SSPBUF,convert_value_temp+1 |
339 call I2CREAD2 ; Year | 339 call I2CREAD2 ; Year |