redid div10 with builder

div10 is right at the edge of what can be understood
no matter the (assmbler) syntax
This commit is contained in:
Torsten Ruger
2018-08-15 19:30:40 +03:00
parent 252ae6de72
commit 43fa7ccbcc
2 changed files with 50 additions and 53 deletions

View File

@ -41,6 +41,7 @@ module Risc
else
raise "Must create (with !) before using #{name}" unless name[-1] == "!"
name = name[0 ... -1]
#raise "name exists before being created #{name}" if @names.has_key?(name)
type = infer_type(name )
reg = @compiler.use_reg( type.object_class.name ).set_builder(self)
end
@ -131,8 +132,8 @@ module Risc
build do
space! << Parfait.object_space
to << space[:next_integer]
integer_tmp! << to[:next_integer]
space[:next_integer] << integer_tmp
integer_2! << to[:next_integer]
space[:next_integer] << integer_2
to[Parfait::Integer.integer_index] << from
end
end