The major issue you have with the Diolan loader is that it has Enhanced CPU mode
enabled. I.E. XINST = ON.
So code compiled with PBP simply is not compatible, and will not run on the PIC as
expected unless you disable Enhanced CPU mode.
Here's a simple example you can try. Make sure you set XINST = OFF, then run this;
Now run the exact same code, but set XINST = ON and give it a whirl.Code:MyVar VAR WORD LED VAR PORTD.0 Loops: FOR MyVar = 0 TO 100 High LED GOSUB BLINK Low LED GOSUB BLINK NEXT MyVar Goto Loops BLINK: PAUSE 200 RETURN End
Once you flip that switch to enable Enhanced CPU mode, ALL your code needs to be using
the extended instruction set. Try it with ACCESS EQU 1 as well. Still no go.




Bookmarks