mirror of
https://github.com/irmen/prog8.git
synced 2025-02-16 22:30:46 +00:00
tweak
This commit is contained in:
parent
89314a0e1a
commit
5ed0893d96
@ -286,7 +286,7 @@ class AstVm(val program: Program) {
|
|||||||
|
|
||||||
private fun executeStatement(sub: INameScope, stmt: IStatement) {
|
private fun executeStatement(sub: INameScope, stmt: IStatement) {
|
||||||
instructionCounter++
|
instructionCounter++
|
||||||
if (instructionCounter % 100 == 0)
|
if (instructionCounter % 200 == 0)
|
||||||
Thread.sleep(1)
|
Thread.sleep(1)
|
||||||
when (stmt) {
|
when (stmt) {
|
||||||
is NopStatement, is Label, is Subroutine -> {
|
is NopStatement, is Label, is Subroutine -> {
|
||||||
|
@ -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)
|
+ 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.plot(0, 21)
|
||||||
c64scr.print("finished in ")
|
c64scr.print("finished in ")
|
||||||
c64flt.print_f(duration)
|
c64flt.print_f(duration)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user