[Slackers] New slangb1.20 up
Jaymz Julian
jaymz at artificial-stupidity.net
Wed May 31 05:24:22 CDT 2006
On Tue, May 30, 2006 at 08:58:10PM -0600, Steve Judd wrote:
> Hola Jaymz,
>
> On Wed, 31 May 2006, Jaymz Julian wrote:
>
> > I agree - although, didn't it at one point detect the case where the final
> > element size is <256 (as in screen :)), and instead of doing a 16bit add, just
> > doing sta (zp),y? In a lot of very common cases that'd be a LOT faster :).
>
> I think the rule is that if the last element is an immediate number, and
> there are <256 elements, it will load it directly. That is,
>
> screen(y,3)=v
>
> will ldy #3. On those things I had some reason for doing it -- some
> special cases that could come up, etc. Or maybe I don't have a way of
> deciding if Eval evaluated just one argument. But now that you bring it
> up, I'll have a look in there and see if it can be made sweet. (The
> danger is that I overlook some special case that was apparent a year or
> two ago, and break things.)
The thing is, if there is only 8bits of elements, then the behaviour of going
over the end of that array should be undefined anyhow - so it's okay, in that
case, to wrap at >256, imnsho - and indeed you do this at least on short
single dimension arrays, so I see no reason not to do that generally.
--jj
--
--
Jaymz Julian - Coder, Visionary, Fat Ass.
"Hannibal is a serial killer. He only likes to kill and eat people.
Very few people have `I want to be killed and eaten' on their cards,
so Hannibal is out of a job." - http://cards.sf.net
More information about the Slackers
mailing list