?

Log in

No account? Create an account
 
 
11 March 2005 @ 03:14 pm
 
I told you not to click it, you jerk.
 
 
 
XCorvisxcorvis on March 11th, 2005 09:49 pm (UTC)
Long day?
Hoc Est Qui Sumus: Killer Coding Ninja Monkeysdiscoflamingo on March 11th, 2005 10:13 pm (UTC)
Kinda
Doom:
10 print "w00t!"
20 goto 10

Doc:
What Doom said, only geekier.

Doom:
I demand source code!

Doc:
#define YOUR_MA 1

int main(void)
{
   static unsigned char c1,c2,c3,c4,c5 = 0x00;
   c3 = c2 = 0x30;
   c1 = (c2 + c2);
   c1 |= 0x17;
   c4 = (c1 & 0xF4);
   c5 = ((c3 & 0x20) | 0x01);

   while (YOUR_MA)
   {
      printf("%c%c%c%c%c\n",c1,c2,c3,c4,c5);
   }
   return (0);
}
Josiah Carlsonchouyu_31 on March 11th, 2005 11:21 pm (UTC)
Re: Kinda
Awesome.
Hoc Est Qui Sumusdiscoflamingo on March 11th, 2005 11:33 pm (UTC)
Re: Kinda
I am become Death, bit-twiddler extraordinaire.
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:
(Deleted comment)
Hoc Est Qui Sumus: Devourdiscoflamingo on March 14th, 2005 06:48 pm (UTC)
U R T3H R3BUL!!1111oneone
masui on March 12th, 2005 03:43 am (UTC)
I WAS FUCKING BURNED BY SENSEI
Happylittledevilhappy_l_devil on March 12th, 2005 04:36 pm (UTC)
I totally didn't click on it. I...uh...just showed up. yeah.