7.6.4 Custom Code Folding – Assembly

To custom fold assembly code, do the following:

  • For MPLAB XC16 and MPLAB XC-DSC assembler code, type the following comments around your code:
    ; <editor-fold defaultstate="collapsed" desc="user-description">
    ASM code block to fold
    ; </editor-fold>
  • For MPLAB XC32 assembler code, type the following comments around your code:
    // <editor-fold defaultstate="collapsed" desc="user-description">
    ASM code block to fold
    // </editor-fold>

OR

  • For MPLAB XC16 and MPLAB XC-DSC assembler code, type fcom; and press the Tab key to automatically enter the relevant comment text above.
  • For MPLAB XC32 assembler code, type fcom// and press the Tab key to automatically enter the relevant comment text above.

Assembly code will fold in the same way that C code folds. For an example of code folding, see the C code example above.