Mercurial > public > hwos_code
comparison src/ghostwriter.asm @ 174:932e91074bdb
CHANGE: Clarify Travel Gases with "---" as change depth
CHANGE: Enable "Change Depth" Menu only for deco gases
author | heinrichsweikamp |
---|---|
date | Sun, 05 Oct 2014 15:36:17 +0200 |
parents | 8bcb064b4fb8 |
children | f515712d8cd6 |
comparison
equal
deleted
inserted
replaced
173:3de05d9b7716 | 174:932e91074bdb |
---|---|
804 endif | 804 endif |
805 call update_battery_registers ; update battery registers into EEPROM | 805 call update_battery_registers ; update battery registers into EEPROM |
806 goto surfloop ; and return to surfaceloop | 806 goto surfloop ; and return to surfaceloop |
807 | 807 |
808 ghostwriter_end_dive_common_sim: | 808 ghostwriter_end_dive_common_sim: |
809 tstfsz surface_interval+0 ; Was interval zero? | |
810 bra ghostwriter_end_dive_common_sim2 ; No | |
811 tstfsz surface_interval+1 ; Was interval zero? | |
812 bra ghostwriter_end_dive_common_sim2 ; No | |
813 bra ghostwriter_end_dive_common ; Yes, done. | |
814 | |
815 ghostwriter_end_dive_common_sim2: | |
809 movf divemins+0,W | 816 movf divemins+0,W |
810 addwf surface_interval+0,F | 817 addwf surface_interval+0,F |
811 movf divemins+1,W | 818 movf divemins+1,W |
812 addwfc surface_interval+1 ; Add simulated divetime to surface interval | 819 addwfc surface_interval+1 ; Add simulated divetime to surface interval |
813 bra ghostwriter_end_dive_common | 820 bra ghostwriter_end_dive_common |