Hi,
I have an error assembling a file for enhanced PIC, see capture in attached file.
command line was gpasm -i -c -o test.o test.asm
The line 467 is:
addfsr 0, 1 ; Skip source string char count
I have made a check with only that line and the error reproduces. So I give you the reduced file in attachment too.
I remember to have trouble with such instruction in a previous version, but I think it was fixed?
(gpasm #1285, Windows version)
Regards,
Philippe.
Anonymous
Forgot the output capture...
If I will be have enough time, I will look at it what the cause of this error.
Károly
Hi again,
Several things:
1) The ADDFSR FSR0, k syntax works well in GPASM.
2) The ADDFSR 0, k syntax is accepted by MPASM, ADDFSR FSR0, k as well.
3) FSR0 / FSR1 are defined to their register address in the include file (0x4 and 0x6).
4) It's in the scope of the stranges mpasm syntax because the MOVIW/MOVWI accepts FSR0 or INDF0 in both MPASM and GPASM, while the code corresponds to MOVIW/MOVWI 0x0, k, while for INCFSR it corresponds to INCFSR 0x4, k.
5) Also the error message seems to have a bad formating?
6) Also this strange "system error" further? Side effect?
In this case, illogical the behavior of gpasm, that's true. The interesting part is - or rather regrettable - so far, no one has indicated this.
Fixed this bug in the svn [r1293] version:
gputils-src-20161216-1293.tar.bz2
gputils-src-20161216-1293.tar.gz (sourceforge.net)
gputils-20161216-1293-setup.exe (sourceforge.net)
A simple example:
Károly
Related
Commit: [r1293]
OK, thanks for this quick fix.
Happy Xmax.
Merry Christmas.
Károly