named the first intruction constructor argument
This commit is contained in:
@@ -25,7 +25,8 @@ module Vm
|
||||
# Make hash attributes to object attributes
|
||||
include Support::HashAttributes
|
||||
|
||||
def initialize options
|
||||
def initialize left , options
|
||||
@left = left
|
||||
@attributes = options
|
||||
end
|
||||
end
|
||||
@@ -43,7 +44,7 @@ module Vm
|
||||
class MoveInstruction < Instruction
|
||||
end
|
||||
class CallInstruction < Instruction
|
||||
def initialize options
|
||||
def initialize left , options
|
||||
super
|
||||
opcode = @attributes[:opcode].to_s
|
||||
if opcode.length == 3 and opcode[0] == "b"
|
||||
|
Reference in New Issue
Block a user