Well, actually sorry for not realizing it was a bug myself. I have not
worked with macros that much. I thought the macro had an illegal
argument really.

> Now the original lab2.asm also compiles without errors with gpasm from svn 
> HEAD.

OK, I see, now the definition of inrtgt works, and other definitions
(such as target) work too.

Strange though, because that code was said to work with an older
version of gpasm!

Anyway, glad this discussion was helpful for gputils debugging :)

Regards,
Luis

On Fri, Mar 29, 2013 at 10:16 PM, Borut Ražem <borut.ra...@gmail.com> wrote:
> Luis,
>
> actually thank YOU, since you found a gputils bug which I fixed right now,
> see https://sourceforge.net/p/gputils/bugs/262/.
>
> Now the original lab2.asm also compiles without errors with gpasm from svn
> HEAD.
>
> Cheers,
> Borut
>
>
> On 29. 03. 2013 22:56, Luis de Arquer wrote:
>
> Thanks a lot Borut!
>
> It assembled fine now! :) I only had to comment out the line
>
> config ICPRT = OFF
>
> because it was complaining it did not exist such a config bit for the 2455.
>
> Regards,
>
> Luis
>
> On Fri, Mar 29, 2013 at 7:43 PM, Borut Ražem <borut.ra...@gmail.com> wrote:
>
> On 29. 03. 2013 19:52, Luis de Arquer wrote:
>
> Thanks for all the responses.
>
> Joel, I have started downloading Microchip libraries, but seeing what
> Sebastien is saying I think I should leave that for now. Thanks anyway
> :)
>
>
> I've got a USB CDC ACM firmware that compiles with latest sdcc,
> I'll see if I can put it up on my webpage this weekend.
>
> That would be great.
>
>
> On Fri, Mar 29, 2013 at 5:32 PM, Borut Ražem <borut.ra...@gmail.com> wrote:
>
> I'm confused: you tried to compile the c (sdcc) source code with gpasm?
> Probably not. So where the erros came from: sdcc or gpasm? If from
> gpasm: can you send me the generated asm file?
>
> Sorry, you are right, I am mixing things up. The one I tried is a
> lab2.asm port to gpasm that you can find here
>
> http://www.janwagemakers.be/wordpress/?p=102
>
> (not sure what lab2 is)
> The assembler seems to be finding issues with some macros.
>
>
> See the gputils bug tracker https://sourceforge.net/p/gputils/bugs/188/.
> Attached you'll find the modified version
> https://sourceforge.net/p/gputils/bugs/_discuss/thread/e3d74659/e1fe/attachment/lab2_18F2455.tgz
> which compiles without errors both with MPASM(X) and gpasm.
>
> Good luck,
> Borut
>
>
> ------------------------------------------------------------------------------
> Own the Future-Intel(R) Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest. Compete
> for recognition, cash, and the chance to get your game on Steam.
> $5K grand prize plus 10 genre and skill prizes. Submit your demo
> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to