>From the include file for the 16c71 ;========================================================================== ; ; RAM Definition ; ;========================================================================== __MAXRAM H'AF' __BADRAM H'07', H'30'-H'7F', H'87' And from the 16F84 for instance ;========================================================================== ; ; RAM Definition ; ;========================================================================== __MAXRAM H'CF' __BADRAM H'07', H'50'-H'7F', H'87' Maybe these could be used to set the top ram address and then compute down from there ? Its an idea I just remember that the include files had some stuff on ram in them Steve.. -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Chetan Bhargava Sent: 10 January 2006 21:15 To: pic microcontroller discussion list Subject: [PIC] gpasm syntax problem Hi, I'm working on a small code that I want to be portable on couple of processors. I'm using the following code to set ramtop depending on processor. Assembling this code on gpasm spits errors while mpasm happily assembles it. . . . 00023 #ifdef PIC16C71 00024 include "P16C71.inc" 00025 processor 16C71 00026 __config _XT_OSC & _WDT_OFF & _CP_OFF & _PWRTE_ON Error [103] : syntax error 00027 ramtop set 0x0C 00028 #endif 00029 00030 ;data storage needed for delays and general purpose 00031 Error [113] : Symbol not previously defined (ramtop). 00032 cblock ramtop . . . What could I be possibly doing wrong that offends gpasm? Regards, -- Chetan Bhargava Web: http://www.bhargavaz.net Blog: http://microz.blogspot.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist