From 220fa08a3a596e516a224d51f918d1a0d345825c Mon Sep 17 00:00:00 2001 From: Ryan Hileman Date: Sun, 23 Aug 2015 14:01:58 -0700 Subject: [PATCH] add regression test from issue #16 --- regress/wrong_sp_arm.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 regress/wrong_sp_arm.py diff --git a/regress/wrong_sp_arm.py b/regress/wrong_sp_arm.py new file mode 100644 index 00000000..a5d21838 --- /dev/null +++ b/regress/wrong_sp_arm.py @@ -0,0 +1,9 @@ +#!/usr/bin/python +# By Ryan Hileman, issue #16 + +from unicorn import * +from unicorn.arm_const import * +uc = Uc(UC_ARCH_ARM, UC_MODE_32) +uc.reg_write(ARM_REG_SP, 4) +print 'Writing 4 to SP' +print 'SP =', uc.reg_read(ARM_REG_SP)