phase 1- get rid of the pesty args in structions

This commit is contained in:
Torsten Ruger
2014-05-10 15:47:27 +03:00
parent 3f88fe15b4
commit 8faf0ba17f
8 changed files with 20 additions and 25 deletions

View File

@ -82,11 +82,11 @@ class TestArmAsm < MiniTest::Test
assert_code code , :orr , [0x03,0x20,0x82,0xe1] #e1 82 20 03
end
def test_push
code = @machine.push :left => :lr
code = @machine.push :regs => [:lr]
assert_code code , :push , [0x00,0x40,0x2d,0xe9] #e9 2d 40 00
end
def test_pop
code = @machine.pop :left => :pc
code = @machine.pop :regs => [:pc]
assert_code code , :pop , [0x00,0x80,0xbd,0xe8] #e8 bd 80 00
end
def test_rsb