Tool News
 
 
 

Tool News

Products Info
Downloads
Tools FAQs
MESC TOOL NEWS: MESCT-AS308-990216D

AS308 Precaution

Please take note of the following problem in using assembler AS308 for the M16C/80 series of microcomputers.


On Using abs308
  1. Versions Concerned
    All the versions of AS308

  2. Problem
    When assembler directive ".ORG" is described more than once in an absolute data section, the absolute address of the symbols defined in the second and later ".ORG" directives is not correctly generated (see Example 1).

         [Example 1]
       -----------------------------------------------------------------------
      |
      |              .section        ram,data
      |              .org   100h
      |    sym1:     .blkb  1
      |    sym2:     .blkb  1
      |              .org   200h
      |    sym3:     .blkb  1        ;Address not correctly generated
      |    sym4:     .blkb  1
      |
       -----------------------------------------------------------------------
    
    

  3. Workaround
    Please define a data section for each ".ORG" directive (see Example 2).

         [Example 2]
       -----------------------------------------------------------------------
      |
      |              .section        ram,data
      |              .org   100h
      |    sym1:     .blkb  1
      |    sym2:     .blkb  1
      |              .section        ram1,data
      |              .org   200h
      |    sym3:     .blkb  1
      |    sym4:     .blkb  1
      |
       -----------------------------------------------------------------------
    

Schedule of Fixing Problem
We plan to fix this problem in our next release.




© 2008. Renesas Technology Corp., All rights reserved. Privacy | Legal