fix integers and clock reset
This commit is contained in:
parent
3895ac624c
commit
2842c903e1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user