add another test (still failing)
This commit is contained in:
parent
523302ebe2
commit
631038dfbd
@ -20,9 +20,9 @@ module Elf
|
||||
assembler = Register::Assembler.new(Register.machine)
|
||||
set_text assembler.write_as_string
|
||||
|
||||
# for debug add labels to the block positions
|
||||
Register.machine.space.types.values.each do |clazz|
|
||||
clazz.instance_methods.each do |f|
|
||||
# for debug add labels for labels
|
||||
Register.machine.space.types.values.each do |type|
|
||||
type.instance_methods.each do |f|
|
||||
f.instructions.each_label do |label|
|
||||
add_symbol "#{clazz.name}::#{f.name}:#{label.name}" , label.position
|
||||
end
|
||||
|
@ -1 +1,2 @@
|
||||
require_relative "test_hello"
|
||||
require_relative "test_zero"
|
||||
|
12
test/elf/test_zero.rb
Normal file
12
test/elf/test_zero.rb
Normal file
@ -0,0 +1,12 @@
|
||||
require_relative "../helper"
|
||||
|
||||
class TestZeroCode < MiniTest::Test
|
||||
|
||||
def test_string_put
|
||||
machine = Register.machine.boot
|
||||
machine.collect
|
||||
machine.translate_arm
|
||||
# writer = Elf::ObjectWriter.new
|
||||
# writer.save "test/zero.o"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user