I created a simple code shown below (sample.c) and compilled it with the command: sdcc sample.c -mds390? It compilled successfully; however, it didn't work when I tested it with my hardware. All pins of Port 3 outputs 5V or a logic 1.
I tried compiling the code with the command: sdcc sample.c. It compilled successfully and work when tested. The binary value of 150 was outputted to Port 3.
Why is that so? What can I do to make the code work when compilled using -mds390?
void main(void) {
   do {
      P3 = 150;

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.