From: SourceForge.net <no...@so...> - 2007-06-30 13:10:17
|
Bugs item #1745717, was opened at 2007-06-30 06:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1745717&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: bit returned in dpl #2 Initial Comment: the following tiny piece of C generates incorrect code with sdcc -v version SDCC : mcs51 2.7.2 # (Jun 28 2007) (UNIX) svn #4870 bit foo(char arg) { return arg & 1; } the generated code looks like 0000 E5 82 108 mov a,dpl 0002 54 01 109 anl a,#0x01 0004 F5 82 110 mov dpl,a 0006 22 111 ret thus, the function returns a char in dpl, instead of a bit. greetings, Robert Larice larice 0x40 vidisys 0x2e de ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1745717&group_id=599 |