Hello all,
 
    Can someone please tell me what's wrong with this code (for CC5XFREE C Compiler)?
 
 int X;
 X = 4;
 switch (X) {
  //              ABCD EFG
  case 00: W = 0b.1111.1100; break; // 0
  case 01: W = 0b.1001.1110; break; // 1
  case 02: W = 0b.0010.0100; break; // 2
  case 03: W = 0b.0000.1100; break; // 3
  case 04: W = 0b.1001.1000; break; // 4
  case 05: W = 0b.0100.1000; break; // 5
  case 06: W = 0b.1100.0000; break; // 6
  case 07: W = 0b.0001.1110; break; // 7
  case 08: W = 0b.0000.0000; break; // 8
  case 09: W = 0b.0001.0010; break; // 9
  case 10: W = 0b.0001.0000; break; // A
  case 11: W = 0b.1100.0000; break; // B
  case 12: W = 0b.1001.1100; break; // C
  case 13: W = 0b.0111.1010; break; // D
  case 14: W = 0b.1001.1110; break; // E
  case 15: W = 0b.0111.0000; break; // F
 }
 PORTB = W;
    Thanks,
 
    Brusque
 
___________________________________________________________________________
| | || |\| | || || |\|\ Edson Brusque :-Þ= (brusque@flynet.com.br)
| | || ||| | || || |||| Musician, Tech Consultant, Programmer, Developer
| |_||_||| |_||_||_|||| Rodeio / SC / Brazil / Earth / Solar Syst / Milk...
| \_\\_\|| \_\\_\\_\||| Giro In'Italia homepage: http://flynet.com.br/giro
|  |  |  |  |  |  |  || C.I.Tronics Lighting Designers: citronics.com.br
|__|__|__|__|__|__|__||---------------- ICQ# 15937748 ---------------------    
\__\__\__\__\__\__\__\|        The SoundFont Users Group Mailing List is at
----------------------|   http://www.geocities.com/SiliconValley/Port/6619/
---------------------------------------------------------------------------