Not using any 'db' or 'dw' anywhere or anything out of the ordinary.
I do have a couple of macro's (the color LCD macros) going with numerous instances of those. However, I added a few lines just to get the total bytes used up to 65,535 exactly...came up correct, and again, still odd. Tried to force an even number using a few NOPs, couldn't do it. And this is again, only using an 18F4620.
Maybe it's a bug in the older version of MPLAB. I'm still running the 'stock' 7.62 of MPLAB, MPASM 5.13. (don't have a need for the newer version yet, if it ain't broke....)
I'll have a play with the above code later on...
EDIT: Updated to MPLAB 8.02 along with the latest PICKIT2 software/firmware (thanks Mr_E for the heads up). Same results, except that I haven't seen the count be 1,000 off. Now it's always odd and sometimes 1, 10, or 100 off. Haven't played with the code yet...
Bookmarks