fix div10

by reducing the incoming integer to fixnum
and then pushing the fixnum result into a new integer
This commit is contained in:
Torsten Ruger
2018-04-01 14:50:13 +03:00
parent 5a861d4ed5
commit 8acfda457f
3 changed files with 33 additions and 28 deletions

View File

@ -165,6 +165,9 @@ module Risc
return int_arg
end
# assumed Integer in given register is replaced by the fixnum that it is holding
def reduce_int( source , register )
add_slot_to_reg( source + "int -> fix" , register , Parfait::Integer.integer_index , register)
end
end
end