diff --git a/docs/source/syntaxreference.rst b/docs/source/syntaxreference.rst index 467bf96ab..ae7ae24ce 100644 --- a/docs/source/syntaxreference.rst +++ b/docs/source/syntaxreference.rst @@ -715,7 +715,8 @@ And this is a loop over the values of the array ``fibonacci_numbers``:: uword number for number in fibonacci_numbers { - ; do something with number + ; do something with number... + break ; break out of the loop early } diff --git a/examples/test.p8 b/examples/test.p8 index 13e8b08d5..01598c25f 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -1,17 +1,7 @@ %import textio -%import floats %zeropage basicsafe main { - float[10] flt - sub start() { - float ff = 9.0 - flt[1] = 42.42 - flt[1] = -9.0 - flt[1] = -ff - flt[1] = -flt[1] ; TODO also fix crash when selecting vm target: fpReg1 out of bounds - floats.print_f(flt[1]) - txt.nl() } }