Page 1 of 1

Challenge 'Mod'

Posted: Fri Oct 31, 2008 10:51 pm
by macz
hi all,

i wrote a HVM version of the requested mod operation - working for me perfectly
even with special cases like 2 mod 2 or also 5 mod 12 and such stuff.

looks all good for me

all i get is:

5 test(s) passed
and then "..my hvm string" is incorrect without any parameters for which the error occured
can anyone of the guys who solved this perhaps have a look ?

thanks & regards

Posted: Fri Oct 31, 2008 11:11 pm
by m!nus
my solution works perfectly

btw, you don't need extra cases. my solution counts 12 instructions
you can use the fact all numbers get floor'd

Posted: Fri Oct 31, 2008 11:12 pm
by macz
i was asking for having a look - but i think i know where my problem is -
i guess i have too many cycles

cu

Posted: Fri Oct 31, 2008 11:33 pm
by macz
ok solved it - thanks