I was checking to see if gpasm would work with my project as a replacement for Microchip's now discontinued mpasm. I looks very like it will, after I cured a few apparently spurious errors, so I thought I'd post that here in case it's a bug and/or fixable.
I have macros refined:
PAGE0 MACRO ; SET PCLATH TO PAGE 0
BCF PCLATH,3 ;
BCF PCLATH,4 ;
ENDM
When invoked with an empty comment gives the error as below:
PAGE0 ;
MySourcefile-V3.asm:4749:Error[127] Too many arguments.
But when invoked in either of the following ways does not give an error.
PAGE0
PAGE0 ; Answer is in ANSH/L0
PIC16F887 in case it's relevant.
Anonymous
I noticed the same error, even a single space after the ';' and it works ok. I have hit this error a few times and I upvote it.
Forgot to log in, I just posted. I am running gpasm-1.5.2 #1331 (Mar 21 2023)