From: titok t. <rai...@fr...> - 2006-03-22 13:00:50
|
Hello, (Sorry because of my english.) I'd like to use an function argument in inline assemby. I try to use sdcc for PIC 14 (16F877). Example: unsigned char myfunct (unsigned char myvar) { unsigned char myvar2; myvar2=3D0; _asm (w=3Dmyvar) ??? /How can I set w to "myvar" variable?=20 (myvar2=3Dw) ??? /How can I set myvar2 variable to w? _endasm; return myvar2; } It is possible to solve in asm file which was made by sdcc but I'd like to= =20 solve it from C. Is it possible? Thanks for your help Zsolt=0A=0A________________________________________________________________= _________=0ALegjobb ny=E1ri aj=E1nlatok: k=F6rutaz=E1sok, Horv=E1to., G=F6r= =F6go., Spanyolo., Olaszo., Ausztria,=0AEur=F3pa nagyv=E1rosai, rep=FCl=F5j= egyek =E9s minden, ami utaz=E1s. www.cartouronline.hu=0A=0A |