?

Log in

No account? Create an account
 
 
11 March 2005 @ 03:14 pm
 
I told you not to click it, you jerk.
 
 
 
Virtual Travellervtraveller on March 12th, 2005 06:40 pm (UTC)
Re: Kinda
You roq. Come dance on my assembler and avert multiprocessor deadlocks in Windows by accidentally executing code at the wrong IRQL level. :s
Virtual Travellervtraveller on March 13th, 2005 11:27 am (UTC)
Re: Kinda
I was so impressed by your handy work I wondered if given the odd 5 mins I could reduce the number of instructions and start with a single assignment.

This is what I came up with. You can put me back in the box now.

#define YOUR_MA 1

int main(void)
{
static unsigned char c1,c2,c3,c4,c5;

c4 = 0x74;
c1 = (c4 >> 4) | c4;
c2 = c3 = (c4 >> 1) & 0xF0;
c5 = (c2 & 0x20) | (c2 >> 5);

while (YOUR_MA)
{
printf("%c%c%c%c%c\n",c1,c2,c3,c4,c5);
}
return (0);
}
Hoc Est Qui Sumusdiscoflamingo on March 14th, 2005 06:47 pm (UTC)
Re: Kinda
Somehow I didn't want to shift due to concerns about portability. But that is definitely slicker and shinier.

Enjoy your time in the box ;-)
Virtual Travellervtraveller on March 14th, 2005 08:04 pm (UTC)
Re: Kinda
But it's daarrrrrk.

I love puzzles like that - feel free to entertain me any time you have another twisted urge.

It was a most excellent idea and code you came up with in the first place.

:bows: