Hi Rob, Vasile

2010/1/6 Rob Hamerling <[email protected]>:
>
> Hi Joep,
>
> Joep Suijs wrote:
>
>> I looked into the _irp error that Wayne reported.
>
> I didn't follow that, sorry if I repeat what has already been discussed.
I think this deserves a thread on it's own and I gladly repeat the
required info.

>
>> It is caused by the use of string array in the procedure
>> print_string(). Arrays seems not to be supported on 12f509. Can
>> anybody confirm this?
>
> Indirect addressing is not supported by this chip, so if a library uses
> indirect addressing it should check if the chip supports it.
This is not realy a library issue, but an issue of the *JAL* feature
of arrays. They seem to require indirect addressing.

> In general: if a library uses a feature which is not present in every PIC it
> should generate an error message when used with a chip without that feature.
In this particular case - print.jal provides quite a few procedures
and only one of them is not supported - we could make this one
procedure compile optional. This enables the use of the other
procedures on this low-end chip.

> Beware with this test: for example the 16F683 has a STATUS_IRP bit, but the
> datasheet tells us that this bit is reserved! Maybe a check on 'core' would
> do, but that may be too general.

Vasile notes that this device (12f509) has a 2-level stack, which seem
to be the case for all PIC_12 devices. However 10f206 does have and
indf register so I assume it supports arrays.

So we actually have two issues:

1. a few devices don't support the jal feature of arrays.
2. some other devices (the one's with a 2-level stack) can be used
with JAL, but can't handle most of the jallib libraries.

The work-around suggested above (conditional compile) can handle the
first issue, but have no practical use due to issue #2.We need a
jallib-vision on how to cope with this.

Joep
-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.


Reply via email to