[A83] Re: variable horizontal line routine?
[Prev][Next][Index][Thread]
[A83] Re: variable horizontal line routine?
ok, time for explanations...
when I read that thing... I was working on an app... and for the TI contest
where the rules are that you cannot write directly to the hardware, you have
to use the ROM calls... therefore I figured that I could have used ILine,
but a series of IPoints would have been faster...
obviously if I hadn't those limitations in mind which I assumed, since the
question didn't give any... I would have written to the screen directly,
which is faster...
I guess I hadn't thought of writing to the buffer and then copying it to the
screen using the ROM call...
I guess it was just the "programming mood" I was in...
----- Original Message -----
From: "Olle Hedman" <oh@hem.passagen.se>
To: <assembly-83@lists.ticalc.org>
Sent: Friday, June 01, 2001 19:12
Subject: [A83] Re: variable horizontal line routine?
>
> At 18:09 2001-06-01, you wrote:
>
> >There's nothing inherently bad about it being in the loop if it saves
bytes.
>
> It is if you optimize for speed and that was the track I was into.
> but hey, lets stop splitting hairs here, the small routine as it is now is
> probably just fine.
> My point was anyway to present a routine much better then the ipoint-based
> one. (wich we all can agree would be horribly slow, both our routines are
> probably done before it had plotted the first pixel or so), not presenting
> the ultimate horizontal line routine :)
>
>
> >features that you wouldn't need. Here's a modified routine, one byte
bigger
> >to include the OR (although it might not be necessary depending on the
> >application):
>
> I find it quite probable that you need the or, when you start mixing it
> with sprites and stuff.
> and as you say, only one byte (and 7 cycles) longer. I think that is
> affordable to make it a bit more versatile.
>
> can we be friends now please? :)
>
> ///Olle
>
>
>
>
References: