gnupic: gpal example
Subject:
Re: gpal example
From:
Craig Franklin ####@####.####
Date:
11 Sep 2004 20:44:08 +0100
Message-Id: <41426670.3060609@users.sourceforge.net>
Geoff Horn wrote:
>I thought that I'd try and get the gpal suite example from the cvs working
>before I delved any deeper into using gpal, unfortunately this error is
>coming up when I run the make file:
>
>gpal -c p16f877.pub config.pub types.pub delay.pub stack.pub main.pub
>stack.pal
>stack.asm:32:Error [113] Symbol not previously defined (_working_data).
>stack.asm:63:Error [113] Symbol not previously defined (_working_data).
>stack.asm:100:Error [113] Symbol not previously defined (_working_data).
>make: *** [stack.o] Error 1
>
>How can I fix these please? There's "local_data" in the assembler output but
>no complaints about it.
>
>
>
It is a bug. Those banksels should be to _local_data not _working_data.
Index: codegen.c
===================================================================
RCS file: /cvsroot/gputils/gputils/gpal/codegen.c,v
retrieving revision 1.12
diff -u -r1.12 codegen.c
--- codegen.c 30 Aug 2004 01:19:38 -0000 1.12
+++ codegen.c 11 Sep 2004 19:40:13 -0000
@@ -196,7 +196,7 @@
codegen_write_asm("addlw %s", var->name);
codegen_write_asm("banksel FSR");
codegen_write_asm("movwf FSR");
- codegen_write_asm("banksel %s", WORKING_LABEL);
+ codegen_write_asm("banksel %s", LOCAL_DATA_LABEL);
break;
case PROC_CLASS_PIC16E:
codegen_write_asm("movf %s, w", WORKING_LABEL);
>Is gpal still being developed? I don't see much reference to it on the list.
>
>
>
Yes.
>Geoff
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>
>