_ _BADROM - Identify Unimplemented ROM
Note:badromis 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
_ _maxromand_ _badromdirectives together flag accesses to unimplemented registers._ _badromdefines the locations of invalid ROM addresses. This directive is designed for use with the_ _maxromdirective. A_ _maxromdirective must proceed any_ _badromdirective. Each<expr>must be less than or equal to the value specified by_ _maxrom. Once the_ _maxromdirective 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 LGOTOorLCALLpsuedo-op is evaluated by the assembler to a constant, and falls in a bad ROM regiona .hexfile 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 |
![]()
|

