$ROMSTART

Top  Previous  Next

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 $ROMFILE could be used to locate code at a different address for example for a boot loader.

 

It is best to use the new $LOADER directive to add boot loader support.

 

 

See also

$LOADER

 

 

ASM

NONE

 

 

Example

$ROMSTART = &H4000