diff code_part1/OSTC_code_asm_part1/menu_custom.asm @ 167:cb055a7d75f3

+ Use overlay local vars. + Make all private functions static. + Merge calc_tissue 2sec and 1min + Merge sim_tissue 1min and 10min + Expose basic display utilities for c-code. + Prepare stand-alone utilities for p2_main.c testing platform. + New c utility: int read_custom_function(cf#)
author JeanDo
date Mon, 24 Jan 2011 23:31:57 +0100
parents 999abb01c78f
children 53b16a746166
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_custom.asm	Sat Jan 22 23:24:12 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/menu_custom.asm	Mon Jan 24 23:31:57 2011 +0100
@@ -104,12 +104,13 @@
 	clrf	EEADRH
 	return					; return
 
-GETCUSTOM15	macro	custom15
-	movlw	custom15
-	call	getcustom15_1
+GETCUSTOM15	macro	number
+	movlw	number
+	call	getcustom15
 	endm
 
-getcustom15_1:
+    global  getcustom15
+getcustom15:
 	; # number of requested custom function in wreg
 	movwf	customfunction_temp2
 	
@@ -792,7 +793,7 @@
     bra     cf_check_8bit
     
 ; Implement the 15bit check, even if not displayed...
-    rcall   getcustom15_1               ; Read into hi:lo
+    rcall   getcustom15                 ; Read into hi:lo
 
     movf    cf_min,W                    ; Compute (bound-value) -> hi:lo
     subwf   lo,F