I've tried res by following the help in mplab by putting the following in a defauld 629.asm file udata 0x20 counter1 res 1 counter2 res 1 Timer1 res 1 Timer2 res 1 w_temp res 1 status_temp res 1 and all i get is this Error - section '.udata' can not fit the absolute section. Section '.udata' start=0x00000020, length=0x00000006 Errors : 1 the help example says do this #include p16f877a.inc ;Include standard header file ;for the selected device. group1 udata 0x20 ;group1 data stored at locations ;starting at 0x20. group1_var1 res 1 ;group1_var1 located at 0x20. group1_var2 res 1 ;group1_var2 located at 0x21. group2 udata ;Declaration of group2 data. The ;addresses for variables under group2_var1 res 1 ;this data section are allocated group2_var2 res 1 ;automatically by the linker. which is what i did above, i even tried putting group in front of udata So i gave up and am using cblock Unless someone can explain what is wrong with the above :o) Ken -----Original Message----- From: olin_piclist@embedinc.com To: Microcontroller discussion list - Public. Sent: 1/26/05 10:52 PM Subject: Re: [PIC]: Watch window in MPLAB 7 - solved Ken Walker wrote: > I didn't want to watch constants, i had typical things like > > counter1 EQO 0x20 > > and wanted to see the counter contents and things like seeing the > values in the status registers during simulation, which i could'nt do > with linker scripts in the project display window. And which i could > see with no linker scripts in the project pane. We just had a long discussion about this. Don't use EQU to define symbols that are intended to be variables in RAM. Use RES instead. In absolute mode I guess the debugger assumes all symbols could be RAM addresses and allows you to add them to the watch window. In relocatable mode there is RES specifically for the purpose of creating variables, so the debugger known that EQU symbols aren't the addresses of variables. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.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