fix integers and clock reset
This commit is contained in:
@@ -31,6 +31,7 @@ module Interpreter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def start bl
|
def start bl
|
||||||
|
@clock = 0
|
||||||
set_state(:running)
|
set_state(:running)
|
||||||
set_block bl
|
set_block bl
|
||||||
end
|
end
|
||||||
@@ -100,7 +101,8 @@ module Interpreter
|
|||||||
|
|
||||||
def object_for reg
|
def object_for reg
|
||||||
id = get_register(reg)
|
id = get_register(reg)
|
||||||
Virtual.machine.objects[id]
|
object = Virtual.machine.objects[id]
|
||||||
|
object.nil? ? id : object
|
||||||
end
|
end
|
||||||
|
|
||||||
# Instruction interpretation starts here
|
# Instruction interpretation starts here
|
||||||
|
Reference in New Issue
Block a user