rename left to first in instruction and started on logic instruction cleanup

This commit is contained in:
Torsten Ruger
2014-05-16 10:42:25 +03:00
parent 009c0895f4
commit ef17bbf9dd
11 changed files with 134 additions and 54 deletions

View File

@@ -25,8 +25,8 @@ module Vm
# Make hash attributes to object attributes
include Support::HashAttributes
def initialize left , options
@left = left
def initialize first , options
@first = first
@attributes = options
end
end
@@ -44,7 +44,7 @@ module Vm
class MoveInstruction < Instruction
end
class CallInstruction < Instruction
def initialize left , options
def initialize first , options
super
opcode = @attributes[:opcode].to_s
if opcode.length == 3 and opcode[0] == "b"