diff code_part1/OSTC_code_asm_part1/menu.asm @ 592:cda5b45b953f

NEW: Deco mode "pSCR-GF": Computes deco and CNS based on pSCR parameters (CF62/63)
author heinrichsweikamp
date Mon, 28 May 2012 17:54:43 +0200
parents fbd5e2b75a63
children 6e456a6398e0
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu.asm	Mon May 28 09:08:43 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu.asm	Mon May 28 17:54:43 2012 +0200
@@ -202,7 +202,7 @@
 	incf	EEDATA,F
 	
 toggle_decotype0:	
-	movlw	d'6'						; number of different modes
+	movlw	d'7'						; number of different modes
 	cpfseq	EEDATA
 	bra		toggle_decotype1
 	clrf	EEDATA
@@ -242,8 +242,13 @@
 	return
 show_decotype6:
 	decfsz	EEDATA,F
+	bra		show_decotype7
+	DISPLAYTEXT	.236			; L16-GF CC	=5
 	return
-	DISPLAYTEXT	.236			; L16-GF CC	=5
+show_decotype7:
+	decfsz	EEDATA,F
+	return
+	DISPLAYTEXT	.226			; pSCR-GF =6
 	return
 
 exit_setup_menu:
@@ -261,7 +266,7 @@
 	read_int_eeprom d'34'		; Read deco data
 
 	movlw	d'7'						; length of description text
-	mulwf	EEDATA						; Multiply with Decomode 0-5 (5=Spare)	
+	mulwf	EEDATA						; Multiply with Decomode 0-6
 	
 	movf	PRODL,W
 	addlw	.314-.256					; Description text offset