fix calling to binaries

used to be to the method, but we assemble the method to its own
position.
Throw in a test for binary calling
This commit is contained in:
Torsten Ruger
2018-03-28 13:00:03 +03:00
parent 7493d738e1
commit 606e3f8cb3
3 changed files with 11 additions and 5 deletions

View File

@ -29,13 +29,11 @@ module Risc
all << ins
end
end
def test_no_risc
def test_no_risc #by assembling, risc doesnt have assemble method
@machine.position_all
@machine.objects.each do |id , method|
next unless method.is_a? Parfait::TypedMethod
next unless method.name == :__init__
method.cpu_instructions.each do |ins|
puts "INS #{ins}:#{}"
begin
ins.assemble(DevNull.new)
rescue LinkException