named the first intruction constructor argument

This commit is contained in:
Torsten Ruger
2014-05-15 19:41:51 +03:00
parent b4c79d218f
commit a0f0d08e81
13 changed files with 78 additions and 77 deletions

View File

@@ -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"