remove div and add div10

general division is for another day, the 10 version is manageable
also same code produces mod10
wip
This commit is contained in:
Torsten Ruger
2015-11-12 20:03:57 +02:00
parent a5afca10f6
commit 5c862111b9
6 changed files with 31 additions and 15 deletions

View File

@ -152,7 +152,7 @@ module Register
@space.get_class_by_name(:Word).add_instance_method Builtin::Word.send(:putstring , nil)
obj = @space.get_class_by_name(:Integer)
[:mod , :putint].each do |f|
[:mod , :putint , :div10 , :mod10].each do |f|
obj.add_instance_method Builtin::Integer.send(f , nil)
end
end