move wip tests
This commit is contained in:
@ -23,8 +23,7 @@ module Risc
|
||||
compiler.add_slot_to_reg( source + "2" , me , Parfait::Integer.integer_index , me)
|
||||
compiler.add_slot_to_reg( source + "3", other , Parfait::Integer.integer_index , other)
|
||||
compiler.add_code Risc.op( source + "4", :+ , me , other)
|
||||
compiler.add_new_int(other)
|
||||
compiler.add_reg_to_slot( source + "5" , me , other , Parfait::Integer.integer_index)
|
||||
compiler.add_new_int(me , other)
|
||||
compiler.add_reg_to_slot( source + "5" , other , :message , :return_value)
|
||||
return compiler.method
|
||||
|
||||
@ -80,6 +79,10 @@ module Risc
|
||||
compiler.add_code Risc.op( s , :>> , tmp , const )
|
||||
# return q + tmp
|
||||
compiler.add_code Risc.op( s , :+ , q , tmp )
|
||||
|
||||
compiler.add_new_int(me , other)
|
||||
compiler.add_reg_to_slot( source + "5" , other , :message , :return_value)
|
||||
|
||||
compiler.add_reg_to_slot( s , q , :message , :return_value)
|
||||
compiler.add_mom( Mom::ReturnSequence.new)
|
||||
return compiler.method
|
||||
|
Reference in New Issue
Block a user