4.6.1.19 Resetbits Option

The -mresetbits option allows you to have the content of the status register preserved by the runtime startup code for PIC10/12/16 devices (described in 5.10.2.4 Status Register Preservation). The -m[no-]save-resetbits option is equivalent in effect.

When this option is in effect, the saved registers can be accessed in your program. The compiler can detect references to the saved STATUS register symbols an will automatically enable this option.