Search found 7 matches

by Tyler
Tue 19 Jun, 2007 12:28 pm
Forum: Programming Help
Topic: [TI-ASM] Sprite Clipping Routine
Replies: 13
Views: 9549

I'm rather new to assembly, and I can't spot much. What I have learned is that the best way to optimize something is to completely rewrite it, in most cases... At the very end of your code, since you're loading 11 ($000B) into DE to advance a row for each line of sprite, you know that D has to be ze...
by Tyler
Sun 17 Jun, 2007 3:49 am
Forum: Programming Help
Topic: Double Functionality
Replies: 4
Views: 4694

You won't get much of a sound while calling a TI-OS function, maybe garbage if anything at all. TI-OS really wasn't meant for multi-tasking to begin with. The only way to correctly render sound would involve coding all of your own routines from scratch that you would need (at least, this is how I th...
by Tyler
Fri 15 Jun, 2007 4:04 pm
Forum: Programming Help
Topic: Trying to optimize this sprite routine...
Replies: 8
Views: 6310

First of all, thank you for all the help. I just got out of my high-school Java course and compared to that and TI-BASIC, this is quite a bit more difficult (but that was expected) :P Secondly, I think the sprite rountine works both correctly and efficently now. It appeared to be working before beca...
by Tyler
Fri 15 Jun, 2007 1:37 am
Forum: Programming Help
Topic: Trying to optimize this sprite routine...
Replies: 8
Views: 6310

By "safe copy", I suppose you mean bcalls?
Those are much too slow for my purposes ;)

I've read approximations on the delay time, such as 10us = 60cc @ 6mhz, 240cc @ 15mhz, but I think these are off (hence the term 'approximation')...
by Tyler
Thu 14 Jun, 2007 6:23 pm
Forum: Programming Help
Topic: Trying to optimize this sprite routine...
Replies: 8
Views: 6310

I edited the routine so that it XORs the sprite to the buffer. I'm just posting the code again in case anyone wanted it or has any suggestions or optimizations. Sorry for the bad formatting, it tabs up perfectly in LateNite. ; ====================================================================== ; ...
by Tyler
Thu 14 Jun, 2007 10:01 am
Forum: Programming Help
Topic: Trying to optimize this sprite routine...
Replies: 8
Views: 6310

It was working at one time, I kept editing the post and eventually just killed the code. Thanks for the finding the error, I guess I just wasn't thinking at the time.

And I'm going to rewrite it for sure, because I just read up on XOR-ing sprites and the possilbities of masks, etc.
by Tyler
Wed 13 Jun, 2007 11:39 pm
Forum: Programming Help
Topic: Trying to optimize this sprite routine...
Replies: 8
Views: 6310

Trying to optimize this sprite routine...

I'm trying to optimize this sprite rountine (it works perfectly as-is). Does anyone have any more optimizations for it? I've looked for awhile... Excuse my comments, I'm a new assembly programmer :P ; ---------------------------------------------------------------------- ; Draws an 8x8 sprite. ; ---...