last split control/stack tests
This commit is contained in:
14
test/arm/test_stack.rb
Normal file
14
test/arm/test_stack.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require_relative 'helper'
|
||||
|
||||
class TestStack < MiniTest::Test
|
||||
include ArmHelper
|
||||
|
||||
def test_push
|
||||
code = @machine.push [:lr]
|
||||
assert_code code , :push , [0x00,0x40,0x2d,0xe9] #e9 2d 40 00
|
||||
end
|
||||
def test_pop
|
||||
code = @machine.pop [:pc]
|
||||
assert_code code , :pop , [0x00,0x80,0xbd,0xe8] #e8 bd 80 00
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user