From: karthik b. g. <sdc...@ya...> - 2003-07-02 16:52:44
|
yah... thatz right !! karthik bala guru --- Simon Hosie <Sim...@co...> wrote: > Nick Craig-Wood: > > u8 eeprom_read(u16 address) > > { > > (void)address; > > _asm > > clr _EA > > clr _EEPROM_DISABLE > > movx a,@dptr > > setb _EEPROM_DISABLE > > setb _EA > > mov dpl, a > > _endasm; > > } > > > > Which generates this new warning > > > > hardware.c:163: warning: function 'eeprom_read' > must return value > > How about: > > return DPL; > > or > > return ACC; > > And check that it gets optimised appropriately. > That's how I used to handle the same problem in > Borland C. > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual > Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |