$ROMSTART

Aus MCS Wiki AVR
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(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> ...")
 
 
Zeile 33: Zeile 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>

Aktuelle Version vom 4. Februar 2014, 13:12 Uhr

Inhaltsverzeichnis

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  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache