add <= operator for fibo

This commit is contained in:
Torsten Ruger
2014-05-28 20:10:16 +03:00
parent 5c0f62ebb9
commit 4186c9cafe
3 changed files with 14 additions and 3 deletions

View File

@ -97,15 +97,18 @@ module Vm
def less_or_equal block , right
RegisterMachine.instance.integer_less_or_equal block , self , right
end
def greater_or_equal block , right
RegisterMachine.instance.integer_greater_or_equal block , self , right
end
def greater_than block , right
RegisterMachine.instance.integer_greater_than block , self , right
end
def equals block , right
RegisterMachine.instance.integer_equals block , self , right
end
def less_than block , right
RegisterMachine.instance.integer_less_than block , self , right
end
def equals block , right
RegisterMachine.instance.integer_equals block , self , right
end
def == other
code = class_for(CompareInstruction).new(self , other , opcode: :cmp)
end