assemble risc to it's position (not itself)

So in the next step the interpreter can use positions as program counter
and would be much more like the real thing
This commit is contained in:
Torsten Ruger
2018-05-17 09:49:01 +03:00
parent 49c4d170ce
commit 37d62d298e
6 changed files with 15 additions and 34 deletions

View File

@ -18,7 +18,7 @@ module Risc
assert IdentityTranslator.new
end
end
class TestTranslator < MiniTest::Test
class TestIdentityTranslator < MiniTest::Test
def setup
@machine = Risc.machine.boot
@ -44,7 +44,7 @@ module Risc
all << ins
end
end
def test_no_risc #by assembling, risc doesnt have assemble method
def test_no_risc
@machine.translate(:interpreter)
@machine.position_all
@machine.create_binary