Chapter 2. Compiler Configuration

Configure compiler code generation policies.

2.1. BOOTLOADER

Format:


        PRAGMA BOOTLOADER { BLOADER | LONG_START | LOADER18 [ cexpr ] | RICKPIC}
      
Set the user code preamble as follows:

2.1.1. BLOADER

Pre-amble:


          ORG 0x0003
          GOTO _pic_pre_user
        

2.1.2. LOADER18 [ cexpr ]

Pre-amble:


          ORG cexpr -- (or 0x0800 if cexpr is not present)
        
The interrupt vector, if used, is put at cexpr + 8

2.1.3. LONG_START

Pre-amble:


            ORG 0x0000
            BSF/BCF _pclath, 4
            BSF/BCF _pclath, 3
            GOTO _pic_pre_user
            NOP
        

2.1.4. RICKPIC

Pre-amble:


          ORG  0x0003
          GOTO _pic_pre_user
        
nb: if "PRAGMA INTERRUPT RAW" is used, the interrupt routine must not exceed one page (minus a few bytes).