SuperHack

User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

and i'd just like to comment that some of the SuperHack programs people have made are INSANE. they are really works of art. i wish i could post them =) especially tails and tog's fast string reversal... just beautiful.
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

Thank you very much for the fix, adum! :D
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

adum wrote:and i'd just like to comment that some of the SuperHack programs people have made are INSANE. they are really works of art. i wish i could post them =) especially tails and tog's fast string reversal... just beautiful.
Thank you... I have made my code a bit more insane. :D
tog
Posts: 70
Joined: Fri Nov 14, 2008 11:23 am
Location: Germany

Post by tog »

tails wrote: Thank you... I have made my code a bit more insane. :D
Oh no! Why did you do that? Now I also have to squeeze some more... :D
JanB
Posts: 8
Joined: Fri Nov 28, 2008 5:32 pm

Post by JanB »

it seems that there is something wrong with the SuperhackVM if I try to submit a program (for a challenge or at the php-version) I get a php-parse-error:

Code: Select all

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.mazie/hacker_apache/html/hacker/html/sh/shack.php on line 3
Force4
Posts: 29
Joined: Wed Dec 16, 2009 8:33 pm

Post by Force4 »

Hello,

There's definitely something I don't understand with the SuperHack.
Maybe someone could help me with that piece of code:

Code: Select all

800>00<!
The trace tells me:

Code: Select all

0:8 (0,0) [8]
0:0 (1,0) [8,0]
0:0 (2,0) [8,0,0]
0:> (3,0) []
0:0 (4,0) [0]
0:0 (5,0) [0,0]
0:< (6,0) [0]
0:! (7,0) [0]
But I expected:

Code: Select all

0:8 (0,0) [8]
0:0 (1,0) [8,0]
0:0 (2,0) [8,0,0]
0:> (3,0) []
0:0 (4,0) [0]
0:0 (5,0) [0,0]
0:< (6,0) [8]
0:! (7,0) [8]
Considering:

Code: Select all

'<'	Push the value of memory cell (S0, S1)
'>'	Store S2 into (S0, S1)
What do I get the wrong way?
Thx in advance.
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

Hi, you just forget that the stack is on the memory.
Force4
Posts: 29
Joined: Wed Dec 16, 2009 8:33 pm

Post by Force4 »

Woopsie I feel stupid now!
Thank you tails!
kaste
Posts: 7
Joined: Wed Aug 17, 2011 8:18 pm
Location: Germany

Post by kaste »

Unfortunately the source to the php implementation is not accessible anymore. Adum please have a look. Thanks!
Post Reply