diff code_part1/OSTC_code_asm_part1/divemode.asm @ 147:a1960295433b

Make loogbook search twice faster. + Cleanup inc/dec eeprom_address macros. + Cleanup loop menu_logbook2. + Make 2 bytes steps
author JeanDo
date Sun, 09 Jan 2011 16:04:02 +0100
parents 622da16b768f
children
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Jan 09 14:39:09 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Jan 09 16:04:02 2011 +0100
@@ -156,8 +156,8 @@
 	btfsc	menubit							; Sleep only with inactive menu...
 	bra		diveloop_loop4
 
-	btfsc	simulatormode_active			; Do not sleep in Simualtor mode
-	bra		diveloop_loop4
+;	btfsc	simulatormode_active			; Do not sleep in Simualtor mode
+;	bra		diveloop_loop4
 
 	sleep
 	nop
@@ -486,8 +486,8 @@
 	bcf		store_sample				; update only any CF20 seconds
 	bsf		update_divetime				; update divemins every CF20 seconds
 
-	btfsc	simulatormode_active		; Are we in simulator mode?
-	return								; Yes, discard everything
+;	btfsc	simulatormode_active		; Are we in simulator mode?
+;	return								; Yes, discard everything
 
 	btfsc	header_stored				; Header already stored?
 	bra		store_dive_data2			; Yes, store only profile data
@@ -1023,8 +1023,8 @@
 	btfss	realdive					; dive longer then one minute
 	goto	end_dive_common				; No, discard everything
 
-	btfsc	simulatormode_active		; Are we in simulator mode?
-	goto	end_dive_common				; Yes, discard everything
+;	btfsc	simulatormode_active		; Are we in simulator mode?
+;	goto	end_dive_common				; Yes, discard everything
 
 	; Dive finished (and longer then one minute or Apnoe timeout occured)
 
@@ -1295,8 +1295,8 @@
 	btfsc	FLAG_apnoe_mode				; In Apnoe mode?
 	bra		timeout_divemode2			; Yes, use CF30 [min] for timeout
 
-	btfsc	simulatormode_active		; In Simulator mode?
-	bra		timeout_divemode3			; Yes, use fixed 5 seconds timeout			
+;	btfsc	simulatormode_active		; In Simulator mode?
+;	bra		timeout_divemode3			; Yes, use fixed 5 seconds timeout			
 	
 	bcf		divemode
 	incf	timeout_counter,F
@@ -1358,8 +1358,8 @@
 	cpfseq	last_pressure+1
 	bsf		pres_changed			; Yes
 
-	btfsc	simulatormode_active	; always update depth when in simulator mode
-	bsf		pres_changed				
+;	btfsc	simulatormode_active	; always update depth when in simulator mode
+;	bsf		pres_changed				
 
 	btfsc	pres_changed	
 	call	PLED_depth					; Displays new depth
@@ -1656,7 +1656,7 @@
 	bcf		premenu
 	bcf		realdive
 	bsf		update_divetime				; set flag
-	btfss	simulatormode_active		; do not disable in simulator mode!					
+;	btfss	simulatormode_active		; do not disable in simulator mode!					
 	call	disable_rs232				; Disable RS232
 
 	read_int_eeprom 	d'33'			; Read byte (stored in EEDATA)