$ROMSTART
From MCS Wiki AVR
(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Instruct the compiler to generate a hex file that starts at the specified address. <span style="font-family: Arial;"> </span> ...") |
|||
Line 33: | Line 33: | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
− | |||
− | |||
− | + | [[File:Notice.jpg]]The $ROMSTART directive is an inheritance from BASCOM-8051. In the AVR it does not have any meaning. | |
− | + | In the 8051 you can use and relocate external memory. This is not possible in the AVR and hence there is no practical usage. | |
+ | |||
+ | For a bootloader you can use the $LOADER directive. | ||
+ | |||
+ | The $ROMSTART directive is still in the help because a future AVR processor might make the option useful. | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> |
Latest revision as of 15:12, 4 February 2014
Contents |
Action
Instruct the compiler to generate a hex file that starts at the specified address.
Syntax
$ROMSTART = address
Remarks
Address |
The address where the code must start. By default the first address is 0.
The bin file will still begin at address 0. |
The $ROMSTART directive is an inheritance from BASCOM-8051. In the AVR it does not have any meaning.
In the 8051 you can use and relocate external memory. This is not possible in the AVR and hence there is no practical usage.
For a bootloader you can use the $LOADER directive.
The $ROMSTART directive is still in the help because a future AVR processor might make the option useful.
See also
ASM
NONE
Example
$ROMSTART = &H4000
Languages | English • Deutsch |
---|