Page 1 of 3

Questions about the 'Rotate that sprite'

Posted: Thu 24 Nov, 2005 11:12 am
by kv83
Post here your questions/comments/remarks. :)

Good luck btw.

Posted: Thu 24 Nov, 2005 12:10 pm
by kv83
@CoBB: :shock: Wow, you're fast... and you can amaze me everytime again with your high-quality code :)

Posted: Thu 24 Nov, 2005 12:13 pm
by CoBB
I'm fast because I decided to come home early. ;)

Posted: Thu 24 Nov, 2005 1:15 pm
by NanoWar
ehm wow, I didnt even know that IXL exists. (?)

Posted: Thu 24 Nov, 2005 3:40 pm
by gangsta
ixh, ixl...and i don't actually know ASM...

Posted: Thu 24 Nov, 2005 4:17 pm
by Jim e
Okay I typed one up, BUt just to make sure I fully understood the rules. It doesn't have to rotate 180 degrees, does it?

Posted: Thu 24 Nov, 2005 4:23 pm
by tr1p1ea
You arent allowed to utilise the f register? :).

I took a small leaf out of Jim e's book ... but i suppose it was pretty obvious anyway.

Posted: Thu 24 Nov, 2005 8:36 pm
by CoBB
Why don't you use djnz at the end?

Posted: Thu 24 Nov, 2005 10:52 pm
by Timendus
Damn, you people are bloody brilliant :o
I don't even dare to participate this way :oops::)

Posted: Thu 24 Nov, 2005 11:36 pm
by CoBB
We are very far from the one-byte boundary, so stop feeling intimidated and join the fun. :)

Posted: Fri 25 Nov, 2005 5:54 am
by tr1p1ea
Rofl, what on earth was i thinking? I was origianlly using c, then switched to b at the last minute. Thanks CoBB :). *embarrassed*.

Timendus, at least give it a shot? You might have a tough time beating CoBB's latest though ... very nice indeed! :).

Posted: Fri 25 Nov, 2005 6:13 am
by CoBB
The first thing I noticed is the 8 bytes wasted on SMC. When a routine is so short, duplication is cheaper size-wise. Besides, I've never used jp (ix) before, so this was a good opportunity. :)

Posted: Fri 25 Nov, 2005 7:12 am
by Jim e
Doesn't decreasing L cause the sprite to mirror?

I'm gonna try again later, I still think theres room.

Posted: Fri 25 Nov, 2005 8:32 am
by tr1p1ea
Hmm.. i think you might be correct there Jim e.

Posted: Fri 25 Nov, 2005 8:57 am
by kv83
It doesn't have to rotate 180 degrees, does it?
Nope.

Very nice guys, I am really impressed :)