--- Claudio Tagliola <spam_OUTcptagliolaTakeThisOuT
CHELLO.NL> wrote:
> Yes. Use retlw. Watch out for program memory page breaks though. I'm
> not
> 100% shure you can use addwf on PCL, but some of the others will
> point
> that out if not.
seq1, seq2, seq3 are program memory pointers, larger then the 8bit wide
w. They represent locations of subroutines one of which I have to call
depending on the value of variable seq.
{Quote hidden}> -a sequence variable held which sequence the PIC should play then :
>
> select_seq: ; subroutine
> bcf STATUS, C
> rlf seq, w
> addwf PCL, f
> call seq1
> return
> call seq2
> return
> call seq3
> return
> ...
>
> Is there a more compact way to do something like this? (less program
> memory used? Here I need 2*sequences for this).
=====
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.