068bda492c
which is in fact the same as return (moving address into pc)
18 lines
303 B
Ruby
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
|