generalize assemblers to use callables

not just methods,  they are almost the same anyway
This commit is contained in:
Torsten Ruger
2018-07-30 10:23:42 +03:00
parent 4055709529
commit 285a88b59f
7 changed files with 16 additions and 16 deletions

View File

@ -60,7 +60,7 @@ module Risc
# Really like any other object, it's just about the ordering
def write_code
@linker.assemblers.each do |asm|
asm.method.each_binary do |code|
asm.callable.each_binary do |code|
write_any(code)
end
end