diff code_part1/OSTC_code_asm_part1/simulator.asm @ 519:154b1d1c489e

NEW added GF surface display.
author JeanDo
date Tue, 06 Dec 2011 18:02:18 +0100
parents 6e57b5bb98ce
children 3091628b2742
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Mon Dec 05 21:04:10 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Tue Dec 06 18:02:18 2011 +0100
@@ -503,7 +503,13 @@
 	ostc_debug	'G'		; Sends debug-information to screen if debugmode active
 	call	deco_calc_desaturation_time	; calculate desaturation time
 	movlb	b'00000001'                 ; select ram bank 1
-	
+
+	; Reset gradient factor until next computation, to avoid spurious
+	; displays after  simulation.
+	clrf    WREG
+	movff   WREG,char_O_gradient_factor
+	movff   WREG,char_O_relative_gradient_GF
+
 	; Note: should not reset nofly-time here: the true value have continued to be decremented
 	;       during simulation, which is the right thing to do...
 	ostc_debug	'H'		; Sends debug-information to screen if debugmode active