Edson - Dump the assembler. Lile's rule for beginning C students: When using C, if you hafta drop into assembler you are probably trying to do something the compiler already knows how to do. Try the more standard C syntax - switch case statement. These are REALLY powerful! This is from memory - check the syntax in your manual in case I left out a parenthesis or something. Switch (case_variable){ case 0: // I can't remember if switch case can handle case zero or not.. case00(); break; case 1: case01(); break; case 2: case02(); break; etc. etc. } -----Original Message----- From: Edson Brusque To: PICLIST@MITVMA.MIT.EDU Date: Friday, January 07, 2000 10:47 AM Subject: Computed GOTO in CCS (please, help me!!!) >Hello, > > I'm still trying to make a computed goto in CCS: > > #asm > movlw high case00 // <-- This doesn't compiles: "Undefined >identifier" > movwf PCLATCH > movf case_variable, W > addwf PCL, F > call case00 > call case01 > call case02 > call case03 > call case04 > call case05 > call case06 > call case07 > call case08 > call case09 > call case10 > call case11 > call case12 > #endasm > > Any sugestion? This works in MPASM, but not in CCS. CCS isn't supposed >to pass anything between #asm and #endasm to the assembler??? > > Best regards, > > Brusque >___________________________________________________________________________ >| | || |\| | || || |\|\ Edson :-^= Brusque >| | || ||| | || || |||| brusque@flynet.com.br >| |_||_||| |_||_||_|||| Musician, Programmer, Developer, Electronics >| \_\\_\|| \_\\_\\_\||| Blumenau / SC / Brazil / South America >| | | | | | | || Earth / Solar System / Milk Way >|__|__|__|__|__|__|__|| Giro In'Italia homepage: www.flynet.com.br/giro >\__\__\__\__\__\__\__\| C.I.Tronics Lighting Designers: www.citronics.com.br >---------------------------------------- ICQ# 15937748 --------------------- > Founder of the CUMP mailing list subscribe-cump@egroups.com > Founder of the SoundFont mailing list soundfont-subscribe@onelist.com >--------------------------------------------------------------------------- -