From: EVANDRO L. H. <eva...@si...> - 2003-01-16 10:30:43
|
Hehehe, I agree. Why use asm? Evandro Luiz Hauenstein -----Original Message----- From: Royce & Sharal Pereira [mailto:be...@et...]=20 Sent: quinta-feira, 16 de janeiro de 2003 07:06 To: SDCC Subject: Fw: [Sdcc-user] absacc.h - XBYTE and #pragma directive endasm = problems Hi, ----- Original Message ----- From: "mount me" <li...@ya...> To: "Jesus Calvino-Fraga" <Je...@ec...>; <sdc...@li...> Sent: Thursday, January 16, 2003 2:34 PM Subject: Re: [Sdcc-user] absacc.h - XBYTE and #pragma directive endasm problems > Hi, > I have got this tiny program implementing xbyte . > > The file is karthik.c --> > > # include<8051.h> > # define XBYTE((unsigned char volatile xdata *)0); > unsigned char volatile xdata kl; > > void main(void) > { > kl=3D0xa000; > XBYTE(kl)=3D0x0000; > } > > Though the program gets compiled correctly, i > am unable to store at the address 0xa000 . > How to do it ?? > > Is there any fault in XBYTE define statement ?? > WHere is the problem ?? Why dont u read the SDCC & ASXxxx manual thoroughly? I'm sure most of = your queries will get cleared... including xdata storage Use the list if u = cant find your answers in any of the docs.. If you need a tutorial in C, the = list is not the best place to get it.. By the way why do you need a C compiler (SDCC) when you seem to want to implement everything in assembly? Bye, --Royce. ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by = implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache=20 Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ Sdcc-user mailing list Sdc...@li... https://lists.sourceforge.net/lists/listinfo/sdcc-user |