really translate risc - cpu/arm
also labels. Actual translation/assembly is much cleaner
This commit is contained in:
16
test/risc/test_translator.rb
Normal file
16
test/risc/test_translator.rb
Normal file
@ -0,0 +1,16 @@
|
||||
require_relative "../helper"
|
||||
|
||||
module Risc
|
||||
class TestTranslator < MiniTest::Test
|
||||
|
||||
def setup
|
||||
@machine = Risc.machine.boot
|
||||
@translator = Arm::Translator.new
|
||||
end
|
||||
|
||||
def test_translate_label
|
||||
label = Parfait.object_space.get_main.risc_instructions
|
||||
assert @translator.translate(label) , label
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user