Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

brainfuck

Name: Anonymous 2007-11-28 16:27

ITT:  figure out what this code does

++++++++++++++++++++++++++++++++++++++++++++++++>>>>>,>,>,>,>,<<<<<<<<<[->>>>>->->->->-<<<<<<<<<]>>>>>>>>>[->>+<<]<[-<<<<<<+>+>>>>>]<<<<<[->>>>>+<<<<<]<<++++++++++[->[->>>>>>>>>+[-<<<<<<<<+>+>>>>>>>]<<<<<<<<[->>>>>>>>+<<<<<<<<]>>>>>>>>[<->[-]]<<<<<<<[->>>>>>>+<<<<<<<]>>>>>>-><<<<<<<<<]>>>>>>[-<<<<<<+>+>>>>>]<<<<<[->>>>>+<<<<<]<<]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>>>>>>[-<<<<<+>+>>>>]<<<<[->>>>+<<<<]<<[->[->>>>>>>>>+[-<<<<<<<<+>+>>>>>>>]<<<<<<<<[->>>>>>>>+<<<<<<<<]>>>>>>>>[<->[-]]<<<<<<<[->>>>>>>+<<<<<<<]>>>>>>-><<<<<<<<<]>>>>>[-<<<<<+>+>>>>]<<<<[->>>>+<<<<]<<]<+++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>>>>>[-<<<<+>+>>>]<<<[>>>+<<<]<<<[>[->[->>>>>>>>>+[-<<<<<<<<+>+>>>>>>>]<<<<<<<<[->>>>>>>>+<<<<<<<<]>>>>>>>>[<->[-]]<<<<<<<[->>>>>>>+<<<<<<<]>>>>>>-><<<<<<<<<]>>>>[-<<<<+>+>>>]<<<[->>>+<<<]<<]<->+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<]+++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++>>>>[-<<<+>+>>]<<[->>+<<]<<<[>[->[->>>>>>>>>+[-<<<<<<<<+>+>>>>>>>]<<<<<<<<[->>>>>>>>+<<<<<<<<]>>>>>>>>[<->[-]]<<<<<<<[->>>>>>>+<<<<<<<]>>>>>>-><<<<<<<<<]>>>[-<<<+>+>>]<<[->>+<<]<<]<->+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<]

Name: Anonymous 2007-11-28 16:33

the code does nothing

Name: Anonymous 2007-11-28 16:35

creates a really annoying horizontal line that I have to scroll waaaay to the right for?

Name: Anonymous 2007-11-28 16:40

Well.  It adds 48 to the 0th byte, then subtracts that from the 6th - 10th, so I'm guessing it involves converting ASCII input to numbers.

Name: Anonymous 2007-11-28 17:51

Is it wrong if I seriously don't give a shit about what some anonymous prick's brainfuck code does?

I come here to troll and use ``faggot quotes'', not to solve your noobish puzzles.

Name: Anonymous 2007-11-28 18:20

It annoys people that actually understand Brainfuck because it is horribly written.

Other than that, it reads 5 decimal digits and tries compute the number it represents (eg atol). Doing this involves copy-pasting a multiplying loop that also computes -2*x*y for no reason.

The formula he uses is digit[4] + 10*digit[3] + 100*digit[2] + 1000*digit[1] + 10000*digit[3]. Unfortunately he miscalculated 1000 as 235+255*2 (instead of *3).

Of course most Brainfuck implementations use a byte for every memory cell, so anything greater than 255 is going to overflow.

Name: Anonymous 2007-11-28 20:27

>>6
thanks for debugging my code dogg
and the overflow is handled by a loop that adds 1 to the previous cell, then subtracts 1 if the cell being tested for overflow != 0

Name: Anonymous 2007-11-28 21:40

adds 1 to the previous cell
It doesn't. And although that would be better it's still just up to 65535. Another concern is that 255+55 will overflow.

Name: Anonymous 2007-11-29 10:52

=-=--=--=-=--=--=-=---=--=-=--=-=--=---=--=---=-=-=--=--=---=-=-
-=-=--=-=-_=--=-=-=-=-=--=-=-=-=-=-=-=--=--=-=-=---=-===-=--=--=-=-=
-=--=-=-=-=--=-=-=-=-=-=--=-=--=-=--=--=-=--=-=-=--=-=-=--=-=----=-=--
--=--=--=-=-=-=--=-=-=--*-------*---=-=-=-=-=-=-=-=-=-=-=-=-=--=-
-=-=--=--=-=-=-=-=-=--=-=-=-===-=-=--=-=--=-=-=--
--=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=---=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===-=---=----==--=--=-
=-=-=-=-=-=-=-=-=-=-=--=-=--=--=-=-=-=--=--=-=-=--=--=--=-=-=-=-=--=--=-=--=--=-=---=--=-=--=-=--=---=--=---=-=-=--=--=---=-=-
-=-=--=-=-_=--=-=-=-=-=--=-=-=-=-=-=-=--=--=-=-=---=-===-=--=--=-=-=
-=--=-=-=-=--=-=-=-=-=-=--=-=--=-=--=--=-=--=-=-=--=-=-=--=-=----=-=--
--=--=--=-=-=-=--=-=-=--*-------*---=-=-=-=-=-=-=-=-=-=-=-=-=--=-
-=-=--=--=-=-=-=-=-=--=-=-=-===-=-=--=-=--=-=-=--
--=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=---=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===-=---=----==--=--=-
=-=-=-=-=-=-=-=-=-=-=--=-=--=--=-=-=-=--=--=-=-=--=--=--=-=-=-

Name: Anonymous 2007-11-29 16:26

>>8
doesn't it, though?


[-<<<<<<<<+>+>>>>>>>]<<<<<<<<[->>>>>>>>+<<<<<<<<]>>>>>>>>[<->[-]]<<<<<<<[->>>>>>>+<<<<<<<]>>>>>>->>>8


And getting up to 65535 was my only goal, but the same thing can be repeated up to 2^32 easily, or 2^64, or whatever size int you want.

Name: Anonymous 2007-11-29 22:32

++++++++++[>++++++++>++++++++++>+++<<<-]>++.>+.----.+++.>++.<<+.----------.------.+++++++++++++.>>++++++++++++++.

Name: Anonymous 2007-11-30 1:23

Jesus fuck, just write in hex or something for fuck's sake.

Name: Anonymous 2009-03-06 6:43

The windows key is   the unaborted twin   of said foetus   with downs syndrome   Firefox is the   same failure as   7chan but with   different DNS and   different admins For.

Name: Anonymous 2011-02-03 0:06

Name: Anonymous 2011-02-03 0:16

Name: Anonymous 2011-02-04 15:49


Don't change these.
Name: Email:
Entire Thread Thread List