Missing disassembly: MPLAB xc8

Thread Starter

Robin66

Joined Jan 5, 2016
281
Hi. I'm trying to ensure my complied code is optimal but the disassembly seems only part complete. Is there anyway to reveal the true compiled code or otherwise find the missing instructions?

eg. this asm
Code:
        // turn on H bits
        PORTA|= HA;
        PORTC|= HC;
Seems to be missing any IOR instructions in the disassembly
Code:
356:                   // turn on H bits
357:                   PORTA|= HA;
1030  504C     MOVF HA, W, ACCESS
358:                   PORTC|= HC;
1034  504D     MOVF HC, W, ACCESS
 

nsaspook

Joined Aug 27, 2009
16,322
Are you saying this is incorrect?

Use the program memory view, it will have the complete disassembly. Look in the .LST (assembler listing) file that the compiler produced. The IDE has incomplete knowledge of what the compiler produces.
 
Last edited:

Thread Starter

Robin66

Joined Jan 5, 2016
281
Ok thx for the responses. I'll dig out the .lst file when I'm home tonight. This was one example but the disassembly seems to be missing about half of the required asm logic. I know it's there though because my circuit is working as intended.
 
Top