Hi Rob!

>  asm rrf data,f
>  asm rlf temp,f
>
>  asm rrf data,f
>  asm rlf temp,f
>
>  asm rrf data,f
>  asm rlf temp,f
>
>  asm rrf data,f
>  asm rlf temp,f
>
>  asm rrf data,f
>  asm rlf temp,f
>
>  asm rrf data,f
>  asm rlf temp,f
>
>  asm rrf data,f
>  asm rlf temp,f
>
>  asm rrf data,f
>  asm rlf temp,f
>
>
Thanks for the suggestions!
A variant of the above could be:

>  var byte x
>      for 8 loop
>          asm rrf data,1
>          asm rlf x,1
>      end loop
>      return x


Of course. The second variant saves about 10 words of code but takes more than 
double the time, and needs a byte of ram (which will not count, as it would be 
used again somewhee else). I'm not in my workshop, so I can't check right now, 
but I presume this version:




temp=0

if data_7==1 then  temp_0=1
end ifif data_6==1 then  temp_1=1
end if...
might compile to 17 assembler statements, so it would only be one code word 
bigger (and one Tcy slower) than the assembler version.

Greets,Kiste

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to