comparison src/ghostwriter.asm @ 166:30ebaf72170d

BUGFIX: Flip compass with flipped screen, too BUGFIX: Surface interval was paused during simulator
author heinrichsweikamp
date Sun, 28 Sep 2014 18:44:07 +0200
parents fdd4e30846ae
children 8bcb064b4fb8
comparison
equal deleted inserted replaced
165:9b82239fa062 166:30ebaf72170d
330 goto ghostwriter_end_dive_common ; No, discard everything 330 goto ghostwriter_end_dive_common ; No, discard everything
331 331
332 ; In DEBUG compile, keep all simulated dives in logbook, Desat time, nofly, etc... 332 ; In DEBUG compile, keep all simulated dives in logbook, Desat time, nofly, etc...
333 ifndef __DEBUG 333 ifndef __DEBUG
334 btfsc simulatormode_active ; Are we in simulator mode? 334 btfsc simulatormode_active ; Are we in simulator mode?
335 goto ghostwriter_end_dive_common ; Yes, discard everything 335 goto ghostwriter_end_dive_common_sim ; Yes, discard everything
336 endif 336 endif
337 337
338 btfsc FLAG_apnoe_mode ; In Apnoe mode? 338 btfsc FLAG_apnoe_mode ; In Apnoe mode?
339 goto ghostwriter_end_dive_common ; Yes, discard everything 339 goto ghostwriter_end_dive_common ; Yes, discard everything
340 340
804 banksel common ; Bank1 804 banksel common ; Bank1
805 endif 805 endif
806 call update_battery_registers ; update battery registers into EEPROM 806 call update_battery_registers ; update battery registers into EEPROM
807 goto surfloop ; and return to surfaceloop 807 goto surfloop ; and return to surfaceloop
808 808
809 ghostwriter_end_dive_common_sim:
810 movf divemins+0,W
811 addwf surface_interval+0,F
812 movf divemins+1,W
813 addwfc surface_interval+1 ; Add simulated divetime to surface interval
814 bra ghostwriter_end_dive_common
815
809 global ghostwriter_short_header 816 global ghostwriter_short_header
810 ghostwriter_short_header: ; Write short header with divenumber into profile memory 817 ghostwriter_short_header: ; Write short header with divenumber into profile memory
811 818
812 ; load pointer for profile storing into RAM (Updated in EEPROM after the dive) 819 ; load pointer for profile storing into RAM (Updated in EEPROM after the dive)
813 clrf EEADRH ; Make sure to select eeprom bank 0 820 clrf EEADRH ; Make sure to select eeprom bank 0