Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Reading from flash in Assembly

2004-12-04 by Dave VanHorn

Trading space for speed.
Now you don't need to call the mult, just ROL it.

>But I still need to multiply the value of the char (say 41hex for the char A)
>by the number of bytes that each char needs (7 or 8) to get to the data for
>the first scan row and then add the row offset to get the pixels for that row.
>
>
> >>         push    zl      ;push z as this routine happens during ints
> >>         push    zh
> >
> >Do your ints not preserve z?  Which spends more time, saving it here, or in
> >the ints that need it?
>
>I think it does, maybe I need to use Z for something else and need to
>preserve it in the same int. I'll have another look.
>
>Anyway...thanks for the tips..but we were trying to help Paul :-))

We are all in the same boat full of holes.
It's nice sometimes, to have someone else helping you bail.
:)

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.