Hi. I've implemented an experimental compiler for the Enhanced Mid-range, family in PicPas
. It's not complete by now, but can be used to test the units created. I have compiled the file PIC16F1454.pas and one errors is:
Line 4: {$SET PIC_MODEL = PIC16F1454}
Must be: {$SET PIC_MODEL = 'PIC16F1454'}
Other errors are in the lines of type:
{$SET_STATE_RAM '0000-000C:SFR'}
The compiler expect 3 digits for the address:
{$SET_STATE_RAM '000-00C:SFR'}
I don't see the necesity to increase the number of digits for this directive, considering 3 digits can cover all the 32 banks of RAM.
You can use the last version PicPas (in
https://github.com/t-edson/PicPas) to test the units. Just set the compiler to "Enhanced Mid-range", like in the picture: