C51 version 7.09
a = LEFT ; switch (a) { case LEFT : subproA P1 = 0x01; P1 = 0x01; subproA break; case RIGHT : subproB P1 = 0x01; P1 = 0x01; subproB break; default : somethingjob; }
You have provided an example which cannot be compiled. You have not provided the assembler listing for the code in question. Without more information, it's impossible for anyone to help you with this. Jon