fix integers and clock reset

This commit is contained in:
Torsten Ruger 2015-10-22 14:42:23 +03:00
parent 3895ac624c
commit 2842c903e1

View File

@ -31,6 +31,7 @@ module Interpreter
end
def start bl
@clock = 0
set_state(:running)
set_block bl
end
@ -100,7 +101,8 @@ module Interpreter
def object_for reg
id = get_register(reg)
Virtual.machine.objects[id]
object = Virtual.machine.objects[id]
object.nil? ? id : object
end
# Instruction interpretation starts here