fixed while compilation (block order) and fixed and improved fibo

This commit is contained in:
Torsten Ruger
2014-06-12 16:23:57 +03:00
parent 8da1bc4645
commit ea0572c836
4 changed files with 28 additions and 29 deletions

View File

@ -97,8 +97,8 @@ module Arm
def write_stdout function #, string
# TODO save and restore r0
function.mov( :r0 , 1 ) # 1 == stdout
function.mov( :r1 , RECEIVER_REG )
function.mov( RECEIVER_REG , :r3 )
function.mov( :r1 , receiver_register )
function.mov( receiver_register , :r3 )
syscall( function.insertion_point , 4 ) # 4 == write
end