Hi all,
I have been trying to clean up one of my programs' communications and ran into an compile error "ERROR: ENDIF: Mismatched block nesting". The interesting thing is that MCS dosen't hint at where it might be so I can get an idea of how to attack it.
The project is crammed into a 18F1320 and it is already using MIBAM.pbp, EE_Vars.PBP, DT_INTS.bas, ReEnterPBP-18.bas and ReEnterPBP-18LP.bas (low priority because of the MIBAM).
I have managed to get the program memory sorted out by reusing some of the variables and playing with the BANK0 vs.BANKA situation explained in http://www.picbasic.co.uk/forum/show...t=12284&page=1 (thank you Darrel, for the includes and all of the insightful explaining the you offer us).
A search reveals only hints on the Microchip site and only in the C sections.
This was a working program until I had thin it down to add the LP INTS to better handle the comm, so it can't be too far off.
I looked at all of the IF-THEN loops and don't see any missing parts, and all of the ASM's end in ENDASM's. There are a number of single @ instructions, but they should be stand-alone.
Any ideas on how to look for this Mismatched Block error?
PBP 2.50c, MPASM 8.15, MCS 3.0.0.5
Bo
Bookmarks