get conditions to work for while

This commit is contained in:
Torsten Ruger
2014-05-22 21:38:57 +03:00
parent c196817568
commit 4f0b769e82
6 changed files with 32 additions and 8 deletions

View File

@ -12,7 +12,11 @@ module Arm
def integer_less_or_equal block , left , right
block << cmp( left , right )
Vm::Bool.new
Vm::BranchCondition.new :le
end
def integer_greater_than block , left , right
block << cmp( left , right )
Vm::BranchCondition.new :gt
end
def integer_plus block , result , left , right