I didn't quite understand the use of these procedures. Can you give an
example please?

This POSTINC1 sounds quite useful & fast. I wonder if it should be
used in sd & hard disk libraries with "if defined(POSTINC1)".

Matt.

On Apr 3, 4:57 am, Oliver Seitz <[email protected]> wrote:
> >Do I understand well when I say this pseudo-var would just be a getter or 
> >setter for POSTINC ?
>
> ... Or, indeed add some overhead, like starting a new little lib like...
> (untested, has to be extended to support 12 and 14bit cores, I think)
>
> procedure dereference’put ( word in pointer, byte in value ) is
>   assembler
>     movff pointer, FSR0L
>     movff pointer+1, FSR0H
>     movff value,INDF0    
>   end assembler
> end procedure
>
> procedure dereference’get ( word in pointer ) return byte is
> var byte value
>   assembler
>     movff pointer, FSR0L
>     movff pointer+1, FSR0H
>     movff INDF0,value    
>   end assembler
>   dereference=value
> end procedure
>
> This may take 15 instruction cycles where direct access to POSTINC takes only 
> one or two, but it can be made quite versatile. It would be an approach to 
> start using pointers without compiler support.
>
> Greets,
> Kiste

-- 
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