Looks like you can go to File, then Import, then selected the file.cod file, and then you can select your variables. Very nice Bruce, I did not know that either.
<img>http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3393</img>
Looks like you can go to File, then Import, then selected the file.cod file, and then you can select your variables. Very nice Bruce, I did not know that either.
<img>http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3393</img>
http://www.scalerobotics.com
Excellent thanks Charles_Leo, scalerobotics and Bruce.
I look forward to trying that when I get home tonight and tracking down the relevant part of the documentation that I might have missed.
I also look forward to contributing to the forum when I get up to speed.
Cheers.
I thought I posted a final reply - I got this working ok - the _ variables were in the symbol list. Sadly the bit variables are not there, which I find a bit strange.
Thanks again for the help.
PBP BIT variables in MPLAB:
Bit variables in PBP are created as aliases to individual bits within a byte variable created to hold them. MPLAB won't display the bit aliases, but it will display the byte container variable. The problem is, you don't know the name of the container variable or the placement of the specific bits without digging into the .ASM file.
One solution is to create your own container variable and bit aliases. This won't make the bit names show in MPLAB, but it will allow you to show the container variable. You'll know which bits are which, because you defined their locations in the first place. There's no performance penalty using this method, because it's exactly what PBP would do if you declared bit variables. There are, in fact, advantages... like the ability to initialize multiple bit variables with a single command.
<code>
mybits VAR BYTE
bitflag0 VAR mybits.0
bitflag1 VAR mybits.1
bitflag2 VAR mybits.2
</code>
Now the variable "_mybits" will be available in the MPLAB watch window, and you'll know how the individual bits in the variable relate to your program.
Bookmarks