Page 2 of 2

Posted: Fri Feb 04, 2011 5:50 pm
by Guderian
i tried to get the result manually. However, if i made no mistake, the program tries to insert in the program counter a negative number, which is illegal. Should this happen?

Posted: Tue May 31, 2011 2:33 pm
by sila
Although I understand the code I got stocked there. It was not to hard to find out that the first error “illegal value” is due to the wrong memory cell addressed. After changing the address to s<3> the code runs forever in that loop which leads to the “too many cycles” error because the program counter is always added by “-32” and this is because the comparison “:” never comes to a state where it returns “0” so that the following command “?” would add “6” to the program counter which then would lead to the end of this program. I’ve tried different ways to get there but all my answers were incorrect, where am I going wrong? I’m not asking for the solution, just for a slight hint if it is possible :wink:

Posted: Tue May 31, 2011 10:53 pm
by MrTerry
well first of all :
assume all memory cells are initialized with 0..in hvm-website u should write it down in the mem-cells

then try to find a pattern.... thats not too hard! since there is a value ':' will return a 0 :)
if u follow the instructions u should see very quickly where it will goes ...
*hint*
btw searching within the forum for hvm might help :)

Posted: Wed Jun 01, 2011 4:14 am
by sila
Thank you for your hints :D and I got it now, it is really quiet easy :wink:

Posted: Wed Dec 28, 2011 5:18 pm
by rain1024
PeterS wrote:What inputs are you talking about? There is no input for this one, so there is only one correct result.
thank you PeterS. When I know there is no input, I got it in 5 seconds. So easy

Posted: Mon Sep 24, 2012 12:50 am
by Shirosan
why does it redirects me to the "challenges" thread of the challenge if I already solved it? It happens only with some challenges...

It should redirect me to the challenges solved section, so that I can discuss the way I solved it, or else i'll end up posting on the unsolved and give away the answer to the guys that didn't :S

Posted: Sat Oct 20, 2012 10:57 am
by der_dude
hey guys, i don't get it. i analyzed the code and i actually got it. i found THE number which gives me the "0" by "?". i also found the min and max values during which no "too many cycles"-exceptions are thrown. and i can build up a series which represents all outputs from min to max. and i also summed up all outputs (which gives a nice looking result which is unfortunately FALSE *grml*).
i guess i don't get it what to type in as the solution.

Posted: Tue Jun 18, 2013 2:31 pm
by speedfire
I think that I have the same problem as der_dude. I have find THE number with what I have to initialize to have S(0) = 0 when I use the "?" operator. So I have an answer but that's not correct.

Posted: Mon Aug 31, 2015 7:42 pm
by bns
Use the source, Luke!

Posted: Tue Sep 01, 2015 10:46 pm
by AMindForeverVoyaging
bns wrote:Use the source, Luke!
Dude. You necro'd a thread where there was no reply for two years to write that? ;-)

Posted: Sun Sep 13, 2015 11:40 am
by bns
Well, I just thought this statement is so true for this challenge...

Perhaps I should have written: *Really* use the source, Luke. :D

Posted: Mon Nov 23, 2015 1:31 pm
by pedroysb
Just follow these steps:
1- run with the python code
2- check the error and the program execution
3- hack the python code to bypass the error