??? 01/07/06 13:33 Read: times |
#106781 - Whats the results if Type Cast?...... Responding to: ???'s previous message |
Hello Joe,
you said: What happends if you type cast the expression? P1 = (unsigned char) (i/10000); I changed the line of code, recompiled and the results are P1 = 0xFF, No change. Regards, Charles Bannister |
Topic | Author | Date |
SDCC C code problem... | 01/01/70 00:00 | |
can you generate an ASM file of the same | 01/01/70 00:00 | |
Last line | 01/01/70 00:00 | |
but how it works whne j is assigned ... | 01/01/70 00:00 | |
its working fine in keil | 01/01/70 00:00 | |
P1 = 0x06 using SDCC. | 01/01/70 00:00 | |
P1 = 0x06 using SDCC | 01/01/70 00:00 | |
Screen Dump showing P1 = 0x06 | 01/01/70 00:00 | |
SDCC ver 2.4 P1=06 SDCC ver 2.5 P1=FF | 01/01/70 00:00 | |
Type cast | 01/01/70 00:00 | |
Whats the results if Type Cast?...... | 01/01/70 00:00 | |
SDCC C | 01/01/70 00:00 | |
SDCC C CODE PROBLEM..![]() | 01/01/70 00:00 | |
SDCC C | 01/01/70 00:00 |