Ad
  • Custom User Avatar

    .

  • Custom User Avatar

    Not everything you've said is true, check your assumptions.

  • Custom User Avatar

    Thanks! Glad you liked it.

    FYI - the Kata kyu level is assigned (not by me) when the Kata is first approved. Once set it cannot be altered.

  • Custom User Avatar

    It's a combination if statement and goto. When the first argument is equal to zero, "jnz" does nothing. Some examples:

    "jnz 1 0"
    This code is an infinite loop: the "if" is always 1, which is not zero. The jump is to itself!

    "dec x"
    "jnz 1 -1"
    Also an infinite loop, with the side effect of subtracting 1 from x every time through the loop

    "mov x 3"
    "dec x"
    "jnz x -1"
    This loop triggers twice: once with x=2 and once with x=1. When x=0, "jnz" does nothing, and the program ends.

    Hope those examples help.

  • Custom User Avatar

    Also if you have trouble discerning if the particular sequence of 1's is a dot or a dash, assume it's a dot.

    It's already in the kata description.

  • Custom User Avatar

    You mean, described? Like, in the way it's um... described, in the description? Or you maybe mean something else?