From ae65952d0a098d84d637a05c2e70ecdbbed8f414 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 29 Sep 2014 20:28:24 +0300 Subject: [PATCH] more precise tests --- test/arm/test_move.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/arm/test_move.rb b/test/arm/test_move.rb index d18330f2..a47965c2 100644 --- a/test/arm/test_move.rb +++ b/test/arm/test_move.rb @@ -11,6 +11,14 @@ class TestMoves < MiniTest::Test code = @machine.mov :pc, 6 assert_code code , :mov , [0x06,0xf0,0xa0,0xe3] #e3 a0 f0 06 end + def test_mov_256 + code = @machine.mov :r1, 256 + assert_code code , :mov , [0x01,0x1c,0xa0,0xe3] #e3 a0 1c 01 + end + def test_mov_max_128 + code = @machine.mov :r1, 128 + assert_code code , :mov , [0x80,0x10,0xa0,0xe3] #e3 a0 10 80 + end def test_mov_big code = @machine.mov :r0, 0x222 code.set_position(0)