_ _BADROM - Identify Unimplemented ROM
Note:badrom
is preceded by two underline characters, with no space in between these characters. A space is added here for readibility only.
Syntax
_ _badrom <expr>[-<expr>][, <expr>[-<expr>]]
Description
The
_ _maxrom
and_ _badrom
directives together flag accesses to unimplemented registers._ _badrom
defines the locations of invalid ROM addresses. This directive is designed for use with the_ _maxrom
directive. A_ _maxrom
directive must proceed any_ _badrom
directive. Each<expr>
must be less than or equal to the value specified by_ _maxrom
. Once the_ _maxrom
directive is used, strict ROM address checking is enabled, using the ROM map specified by_ _badrom
. To specify a range of invalid locations, use the syntax<minloc>
-<maxloc>
.Specifically, a warning will be raised in the following circumstances:
the target of an LGOTO
orLCALL
psuedo-op is evaluated by the assembler to a constant, and falls in a bad ROM regiona .hex
file is being generated, and part of an instruction falls in a bad ROM regionExample
See the example for
_ _maxrom
.See Also
Microchip Technology Inc. Microchip's Web Site Voice: (480) 792-7200 Fax: (480) 899-9210 Microchip's E-mail Address |