fix passes, add noop reduction, remove the wretched value operators

This commit is contained in:
Torsten Ruger
2014-06-11 21:36:22 +03:00
parent 4e6319b753
commit b125a7c5c7
6 changed files with 42 additions and 26 deletions

View File

@ -128,7 +128,6 @@ module Arm
sys_and_ret = Vm::Integer.new( Vm::RegisterMachine.instance.return_register )
block.do_add mov( sys_and_ret , num )
block.do_add swi( 0 )
block.do_add mov( sys_and_ret , return_register ) # syscall returns in r0, more to our return
#todo should write type into r0 according to syscall
sys_and_ret
end