diff code_part1/OSTC_code_asm_part1/divemode.asm @ 486:c7b663939737

making waitms speed-independent, desat-time fix
author heinrichsweikamp
date Sat, 15 Oct 2011 15:03:53 +0200
parents d300e6ad6f66
children 19b9e19ea4da
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Sat Oct 15 13:45:15 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Sat Oct 15 15:03:53 2011 +0200
@@ -1121,6 +1121,8 @@
 	movlb	b'00000001'                 ; select ram bank 1
     call	calc_deko_surfmode2			; work-around for nofly bug
 	rcall	calculate_noflytime         ; Calc NoFly time
+    movff	int_O_desaturation_time+0,desaturation_time_buffer+0
+    movff	int_O_desaturation_time+1,desaturation_time_buffer+1
 	ostc_debug	'H'                     ; Sends debug-information to screen if debugmode active
 										; store header and ...
 	movlw	0xFD						; .... End-of-Profile Bytes