gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Re: Interfacing w/assembler in SDCC on PIC?
From: Scott Dattalo
Date: Thu, 25 Sep 2003 06:55:09 -0700 (PDT)

On Thu, 25 Sep 2003, Rick Mann wrote:

> I've written a routine like this in PIC assembly:

<snip>

> 
> But I'd like to call it from SDCC's C. Can anyone tell me how to do 
> this? I suppose it wouldn't be that hard to re-write in C, but I'd like 
> to learn how to do this properly.


Hi Rick,

Check out sdcc/src/regression/inline.c

However, be aware that inlined assembly code is not handled very well.

Scott


gnupic@linuxhacker.org