more on classes, have to work on asm next

This commit is contained in:
Torsten Ruger
2014-06-01 21:03:08 +03:00
parent 1d10c2c03e
commit 08bbad0fdc
7 changed files with 28 additions and 9 deletions

View File

@ -31,6 +31,12 @@ module Arm
Vm::BranchCondition.new :gt
end
# TODO wrong type, should be object_reference. But that needs the actual typing to work
def integer_at_index block , result ,left , right
block << ldr( result , left , right )
result
end
def integer_plus block , result , left , right
block << add( result , left , right )
result