Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: squidgetx on May 21, 2011, 01:04:22 pm

Title: Optimized Pt-Mask routine
Post by: squidgetx on May 21, 2011, 01:04:22 pm
Hi,

I was wondering if anyone could help me to create a 16x16 routine that does the same thing as the following code, taking arguments to x, y, and pointer-to-64-byte-masked-sprite:
Code: [Select]
Lbl D
Pt-Mask(r1,r2,r3
Pt-Mask(r1+8,r2,r3+16
Pt-Mask(r1,r2+8->r2,r3+32
Pt-Mask(r1+8,r2,r3+48
except that it can be optimized to monochrome-only (I don't need the routine to be writing to the backbuffer)

If it can be done as an asm() routine, I would appreciate it greatly ^.^ Thanks in advance
Title: Re: Optimized Pt-Mask routine
Post by: squidgetx on May 24, 2011, 12:50:36 pm
anyone? otherwise i might have to drop my isometric contest entry due to speed issues...
Title: Re: Optimized Pt-Mask routine
Post by: SirCmpwn on May 24, 2011, 01:04:01 pm
I would like to see this kind of routine as well.
Title: Re: Optimized Pt-Mask routine
Post by: Builderboy on May 24, 2011, 02:28:36 pm
There is a way to do it with 2 regular sprite routines, but from the command speed index it looks like it would be just about the same speed :/