Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/14/10 20:40
Read: times


 
#175918 - okay and how do you want to use it?
Responding to: ???'s previous message
If you want to give foo an absolute address, you surely don't want the linker to place other variables "around" it. Then, it is enough to treat foo as "any symbol", and simply assign it:
foo = 64
 

At the end of the day, this is what the compiler produces, too. This
__xdata __at 0x200 a[10];
__xdata b[10];

 
SDCC compiles to:
                             13 	.globl _b
                             14 	.globl _a
[...]
                             65 	.area XSEG    (XDATA)
                    0200     66 _a	=	0x0200
   0000                      67 _b::
   0000                      68 	.ds 20

 


(Note that the compiler adds underscores to its variables).

JW

List of 23 messages in thread
TopicAuthorDate
SDCC assembler Questions            01/01/70 00:00      
   :: or .globl            01/01/70 00:00      
   do you mean .globl directive?l            01/01/70 00:00      
   so far, so good now how specify xdata            01/01/70 00:00      
      what are you trying to do            01/01/70 00:00      
   is there a current SDCC documentation?            01/01/70 00:00      
      at least UserGuide from Googel :-)            01/01/70 00:00      
         unsigned char _far _at(0x700) buf[0x100]            01/01/70 00:00      
         without a word about the assembler            01/01/70 00:00      
      documentation            01/01/70 00:00      
         sample in pseudocode            01/01/70 00:00      
            okay and how do you want to use it?            01/01/70 00:00      
               a simple example            01/01/70 00:00      
                  thanks for the examples and ...            01/01/70 00:00      
      current SDCC documentation            01/01/70 00:00      
         evidently XDATA assembler is not 'current'            01/01/70 00:00      
            my installation has asxxhtm.html in doc/as            01/01/70 00:00      
               well, you get what you pay for and            01/01/70 00:00      
                  SDCC is free after all            01/01/70 00:00      
                     They frequently claim it in the negative            01/01/70 00:00      
                     from my first post "            01/01/70 00:00      
                        asxxxx tools            01/01/70 00:00      
                           as it turned out ...            01/01/70 00:00      

Back to Subject List