diff --git a/compiler/src/prog8/astvm/AstVm.kt b/compiler/src/prog8/astvm/AstVm.kt index 0962627b6..a27d75371 100644 --- a/compiler/src/prog8/astvm/AstVm.kt +++ b/compiler/src/prog8/astvm/AstVm.kt @@ -286,7 +286,7 @@ class AstVm(val program: Program) { private fun executeStatement(sub: INameScope, stmt: IStatement) { instructionCounter++ - if (instructionCounter % 100 == 0) + if (instructionCounter % 200 == 0) Thread.sleep(1) when (stmt) { is NopStatement, is Label, is Subroutine -> { diff --git a/examples/mandelbrot.p8 b/examples/mandelbrot.p8 index f32b08784..e2f9e0e31 100644 --- a/examples/mandelbrot.p8 +++ b/examples/mandelbrot.p8 @@ -39,9 +39,9 @@ } } - float duration = floor(((c64.TIME_LO as float) + float duration = ((c64.TIME_LO as float) + 256.0*(c64.TIME_MID as float) - + 65536.0*(c64.TIME_HI as float))/60.0) + + 65536.0*(c64.TIME_HI as float))/60.0 c64scr.plot(0, 21) c64scr.print("finished in ") c64flt.print_f(duration)