rubyx/test/arm/test_translator.rb
Torsten Ruger 068bda492c implement DynamicJump for Arm
which is in fact the same as return (moving address into pc)
2018-06-24 19:13:55 +03:00

18 lines
303 B
Ruby

require_relative 'helper'
module Arm
class TestStack < MiniTest::Test
def test_init
assert Translator.new
end
def test_dynamic
trans = Translator.new
jump = Risc::DynamicJump.new("" , :r1)
res = trans.translate jump
assert :r1 , res.from
end
end
end