Here's a tip I don't think a lot of people using PBP are aware of. This lets you view the entire PBP program in pure assembler & even shows each sub-routines label.
Download the latest version of MPLAB, and compile your code with MPASM.
Start MPLAB, and select the target PIC you compiled for & osc speed.
Click File, then Import. Locate the .COD file NOT the .hex file.
Example: blink.bas was compiled. Locate & import blink.cod.
Click View >> Program Memory. You'll see the full assembler file on-screen.
Right click in the Program Memory window, roll down & click on Properties.
Make sure there's a check mark next to Disassembly & Label, and move label to the top by highlighting Label, and cicking the Move Up button. This places each routies name or label on the left just like it would normally appear in your source code.
Now you can simulate, watch everything happen, and even print the full assembly listing in a format you can read.
You can't compile with PBP from within MPLAB doing it like this, but it's a lot easier to follow during simulation, and reading the assembler code PBP produces.
Bookmarks