started naming instruction arguments properly, starting with compare

This commit is contained in:
Torsten Ruger
2014-05-18 11:11:26 +03:00
parent f65ad813af
commit 6abd10f278
6 changed files with 63 additions and 48 deletions

View File

@@ -55,8 +55,9 @@ module Vm
end
end
class CompareInstruction < Instruction
def initialize first , options
@first = first
def initialize left , right , options
@left = left
@right = right
super(options)
end
end