diff code_part1/OSTC_code_asm_part1/menu_custom.asm @ 164:999abb01c78f

+ Change data allocation scheme
author JeanDo
date Fri, 21 Jan 2011 01:44:38 +0100
parents 6a94f96e9cea
children cb055a7d75f3
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_custom.asm	Fri Jan 21 01:44:37 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/menu_custom.asm	Fri Jan 21 01:44:38 2011 +0100
@@ -66,11 +66,11 @@
 
 ; Overlay our tmp data with some unused variables. But use more
 ; meaningfull labels...
-cf32_x4     EQU divemins+0      ; CF# modulus 32, time 4.
-cf_type     EQU divemins+1      ; Type of the edited CF
-cf_value    EQU divesecs
-cf_min      EQU apnoe_mins
-cf_max      EQU apnoe_secs
+#define cf32_x4     divemins+0      ; CF# modulus 32, time 4.
+#define cf_type     divemins+1      ; Type of the edited CF
+#define cf_value    divesecs
+#define cf_min      apnoe_mins
+#define cf_max      apnoe_secs
             
 GETCUSTOM8	macro	custom8
 	movlw	custom8
@@ -565,7 +565,7 @@
 
 cf_fill_line:                   ; Mattias: No flicker if u clear just what you need...
 	movf    FSR2L,W             ; How many chars lefts ?
-	sublw   (LOW letter) + .18  ; Remaining chars to fill: (letter + 18) - PTR
+	sublw   letter + .18        ; Remaining chars to fill: (letter + 18) - PTR
 	btfsc   STATUS,N            ; Add chars until none left...
 	return
 	PUTC   ' '