db459fcd3d
was still loading the integer address instead of the return address's address Hello World working
19 lines
381 B
Ruby
19 lines
381 B
Ruby
require_relative "../helper"
|
|
|
|
class HelloTest < MiniTest::Test
|
|
|
|
def setup
|
|
Risc.machine.boot
|
|
end
|
|
def check
|
|
Vool::VoolCompiler.ruby_to_binary( "class Space;def main(arg);#{@input};end;end" )
|
|
writer = Elf::ObjectWriter.new(Risc.machine)
|
|
writer.save "test/hello.o"
|
|
end
|
|
|
|
def test_string_put
|
|
@input = "return 'Hello World!\n'.putstring"
|
|
check
|
|
end
|
|
end
|