Merge pull request #17 from lunixbochs/master

add regression test from issue #16
This commit is contained in:
Nguyen Anh Quynh 2015-08-24 09:16:11 +08:00
commit 52dba21c33
1 changed files with 9 additions and 0 deletions

9
regress/wrong_sp_arm.py Normal file
View File

@ -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)