Is OR and AND operation is supported in SDCC .whether hearder file is required or not

  TRISD=0x00;
  PORTC = PORTC|0x04;  //rs=0,rw=1,E=2 for command rs=0 rw=0 and en=1(00000100)
  PORTD=x;
  PORTC=PORTC^0x04;   
this code is not working plz replay me

On 1/20/07, george john <az.j.george@gmail.com > wrote:
i am using sdcc version SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.6.3 #4543 (Dec 31 2006) (UNIX)
I solved the compilation problem by  typecasting value5 and value6 now compilation is ok.I am not sure about the result.now i am trying to check that part.I want to know one more thing in pic16f877 to start an a/d convertion we have to set the GO/Done bit in the adcon0 .but in the header file it this bit is defined in three ways GO , NOT_DONE,GO_DONE will you plz tell which bit i have to set to begin A/D convertion .now i write this part in assemble.

Also in pic16f84a first pin of portb can be set by RB1=1
but in pic16f877 it is not possable.is any way to do this now i am setting the whole portb.
also i noticed one thing inside a c code if i wrote  an asm ie
_asm
bcf  STATUS,RP0;
_endasm;
it give an error that STATUS_bit PR0 is not defined.how we can solve this


On 1/19/07, Raphael Neider < rneider@web.de> wrote:
Hi John,

> sdcc: /home/users/s/sd/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic/gen.c:3609: genModOneByte: Assertion `result->aop->size == 1' failed.
> Caught signal 6: SIGABRT

Fixed in SDCC 2.4.6, r4581 (for both / and %). Thanks for the report.

> void multiply()
> {
>   value=ADRESH;
>   value=value&0x03;
>   value=value* 0.48;

You seem to use floating point arithmetics on the pic14 port. Could you
please report success or failure regarding this? I believed floating
point not to work, but did not check for a long time... Any report would
be highly appreciated. Anyhow, be warned: FP arithmetics might cause
further troubles. If in doubt, try to approximate using integer
arithmetics only.

Regards,
Raphael



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user