Renesas TM V.3.20A Specifikace Strana 59

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 762
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 58
Renesas Technology, Tools FAQs
Last Updated: July 21, 2000
Document Number: 01051236_e
Q.
I want to place CONST-declared data at the place that I assign in the ROM.
A.
Please write your program in the following manner:
Declare variables which you want to place in the ROM with "#pragma ROM".1.
Modify the start-up program so that the section "rom_FE", where the above-mentioned variable will be placed, is properly
mapped in the specified location.
2.
The following shows an example of the declared variable "text" placed at 0xF9000.
Declare the text with "#pragma ROM":
#pragma ROM text
const char text[5]={"text"};
Based on the above declaration, the following assembler code is generated:
.SECTION rom_FE,ROMDATA ;<--Section rom_FE
.glb _text
_text:
.byte 74H ; 't'
.byte 65H ; 'e'
.byte 78H ; 'x'
.byte 74H ; 't'
.byte 00H
.END
1.
Modify start-up program (setc30.inc):
.section rom_FE,ROMDATA
.org F9000H ;<--specify the address for this section
rom_FE_top:
.section rom_FO,ROMDATA
rom_FO_top:
2.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Zobrazit stránku 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 761 762

Komentáře k této Příručce

Žádné komentáře