$ROMSTART

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(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;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
The $ROMFILE could be used to locate code at a different address for example for a boot loader.
 
  
<span style="font-family: Arial;">&nbsp;</span>
 
  
It is best to use the new $LOADER directive to add boot loader support.
+
[[File:Notice.jpg]]The $ROMSTART directive is an inheritance from BASCOM-8051. In the AVR it does not have any meaning.
  
<span style="font-family: Arial;">&nbsp;</span>
+
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;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</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.

 


Notice.jpgThe $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

$LOADER

 

 

ASM

NONE

 

 

Example

$ROMSTART = &H4000


Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language