comparison code_part1/OSTC_code_asm_part1/start.asm @ 647:e6ac142e82b0

New Diluent Submenu in Divemode
author heinrichsweikamp
date Sun, 07 Oct 2012 21:31:19 +0200
parents f87205426add
children ea2bc3b9224e
comparison
equal deleted inserted replaced
646:06ffc99a405f 647:e6ac142e82b0
210 movwf sub_a+0 210 movwf sub_a+0
211 call sub16 ; sub_c = sub_a - sub_b 211 call sub16 ; sub_c = sub_a - sub_b
212 btfss neg_flag ; Result negative (Ambient>880mBar)? 212 btfss neg_flag ; Result negative (Ambient>880mBar)?
213 bsf high_altitude_mode ; No, Set Flag! 213 bsf high_altitude_mode ; No, Set Flag!
214 214
215 ; Should we disable sleep (hardware emulator)
216 Ifndef TESTING
217 restart_loop:
218 btfss 0xF81,0,A
219 bra restart_loop
220 btfss 0xF81,1,A
221 bra restart_loop
222 movlw 0x80
223 cpfslt 0xFB3,A
224 bsf nsm ; NO-SLEEP-MODE : for hardware debugging
225 Endif
226
227 call gassetup_sort_gaslist ; Sorts Gaslist according to change depth 215 call gassetup_sort_gaslist ; Sorts Gaslist according to change depth
228 WIN_TOP .0 216 WIN_TOP .0
229 WIN_LEFT .0 217 WIN_LEFT .0
230 WIN_FONT FT_SMALL 218 WIN_FONT FT_SMALL
231 WIN_INVERT .0 ; Init new Wordprocessor 219 WIN_INVERT .0 ; Init new Wordprocessor