From: SourceForge.net <no...@so...> - 2010-05-25 13:18:06
|
Feature Requests item #1113961, was opened at 2005-02-01 14:04 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=1113961&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: mcs51(8051) target Group: None >Status: Closed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Maarten Brock (maartenbrock) >Summary: Non-optimal empty while instruction. Initial Comment: When I use this line of code in my program while (INT0 == 1); SDCC generate optimal assembler code i.e. JB INT0,$ But when I write the following line of code while (INT0 == 0); SDCC dont generate optimal assembler code i.e. JNB INT0,$. SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.4.8 #948 (Jan 31 2005) (MINGW32) ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2010-05-25 15:18 Message: Somewhere along the line this was improved. SDCC 2.9.0 generates both JB and JNB as expected. ---------------------------------------------------------------------- Comment By: Frieder Ferlemann (frief) Date: 2005-03-16 22:45 Message: Logged In: YES user_id=589052 Hi, until this feature request has been addressed you can use while (!INT0) ; which avoids the conversions and generates the jnb _INT0,00101$ you're expecting. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=1113961&group_id=599 |