Andre Abelian wrote: > 1. What is the reason when I label name error Mplab doesn't like it > displays symbol previously not defined. when I change it to > something else works ok. How can find out what to lable.is there any > specific names that shouldn't use? Andre: MPASM doesn't let you use "ERROR" as a label name because there's an assembler directive called "ERROR"... For the same reason, you can't use "EQU", "ORG", "MACRO", or any of the other directives as label names. > 2. the way I understood about cblock is it is automatic equation > that compiler will find empty location and use it. let say I am > using simple table code when I use cblock it doesn't work when I use > manual way like xxxx equ xxx works ok. Could you tell me when > should I use Cblock instraction. the way I use it > > cblock 0x00 > test > endc CBLOCK doesn't automatically find empty locations; it just assigns sequential values to a list of symbols. To use it properly, you must specify a valid starting address... For example: CBLOCK 0x20 TEST1 TEST2 ENDC The above fragment will assign TEST1 to 0x20 and TEST2 to 0x21; it's equivalent to: TEST1 EQU 0x20 TEST2 EQU 0x21 -Andy === Meet other PICLIST members at the Embedded Systems Conference: === 6:30 pm on Wednesday, 1 October, at Bytecraft Limited's booth. === === For more information on the Embedded Systems Conference, === see: http://www.embedsyscon.com/ === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499